News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15187
Latest: 3636lightshow
New This Month: 4
New This Week: 0
New Today: 0
Stats
Total Posts: 123961
Total Topics: 15067
Most Online Today: 49
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 36
Total: 37

PiSugar auto-on & RTC

Started by merp, June 22, 2022, 02:36:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

merp

I have a PiSugar 3 (paired with RPi Zero 2 W running FPP) which includes a built-in RTC.

Is it possible to get FPP to sync from this RTC? How hard is it to add support for a new RTC?

Is it possible to get FPP to automatically play a specific background sequence on start? So it should have this on repeat starting at system startup, until I start the actual sequence I want. (then once that sequence finishes, it should return to background) I'm thinking of putting up a social media handle or a test card, so I can see at a quick glance that everything has powered on and works.

dkulp


For the RTC, it's not "hard", but something that's obviously impossible for the developers to test without a device.  I don't see what kind of RTC is on the PiSugar3 or what it's i2c address is.   The PiSugar2 seems to use a SD3078 on 0x32.  If we assume they used the same for the PiSugar3.   Thus, if you could try running:  (as root)

echo "sd3078 0x32" > /sys/bus/i2c/devices/i2c-1/new_device

and then running "hwclock -r" to see if it can actually read the time, that would be great.   If so, the only two files needing update would be:

/opt/fpp/scripts/piRTC 
/opt/fpp/www/controllers/options.php

The second file there would just be adding a new entry GetOptions_RTC().    Likely using value 6.   The first file would just be adding a case for "6" which does the above echo.     It's fairly simple, but I'd like to verify that it uses the sd3078 on 0x32 first.  Also, the sd3078 supposedly supports a write protect setting.   I don't know if that's something that is enabled by default.   If so, there may need to be more work to figure out how to set time on the RTC. 

Daniel Kulp - https://kulplights.com

Support FPP

+- Recent Topics

Bridging networks so show network can access internet by bloojoop
July 04, 2022, 03:08:03 PM

Looking for FPP Initial Setup screen by Poporacer
July 04, 2022, 11:51:56 AM

FPP 5.4 Released! by Poporacer
July 04, 2022, 08:42:52 AM

Falcon player dynamic tempo from some kind of input. How would I go about it? by JonD
July 03, 2022, 03:20:37 AM

FPP Startup - Newbee by Poporacer
July 02, 2022, 08:51:24 AM

EDM Audio FPP Plugin - RDS Expectations? by JonD
July 02, 2022, 06:12:35 AM

The Blenders - Rudolph by breese
July 01, 2022, 08:21:41 AM

fpp error when writing to emmc on BBB by neilric99
June 30, 2022, 11:28:59 PM

Any idea when more will be available by Poporacer
June 30, 2022, 09:39:31 PM

Trouble with wifi tethering/ initial setup by Poporacer
June 29, 2022, 09:14:53 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod