- Joined
- Apr 16, 2016
- Messages
- 9,848
- Reaction score
- 17,081
- Location
- Pleasant Hill, Concord
- What state or country do you live in
- California
Thank you for the kind words. It means a lot to us.Awesome! I’ve got a couple of Jebao’s that I can modify to control via 0-5v, so hardware is easy enough.
If you can give some pointers to the API on the crescent/alternating patterns I should be good to take a crack at it.
Also happy to help out with docs or anything you want to point me at.
Thanks again! This is a great project, super impressed on both where it is today and what the future holds. Really appreciate your efforts on it![]()
On how to use the API to change lights profiles:
- Learn how to use the API using curl command: https://reef-pi.github.io/guides/troubleshooting/
- List your lights, to get the ID of the specific light you want to update `curl -b cookie.txt http://<reef-pi-ip>/api/lights`.
- Save an existing light(with id 1) in son file: `curl -b cookie.txt http://<reef-pi-ip>/api/lights/1 > light_1.json`
- Edit the file, update profile with the one you prefer. Provide profile specific details in the config section under profile. Here is an example of random profile:
Code:
{
"id": "1",
"name": "Test",
"channels": {
"0": {
"name": "Channel-1",
"on": true,
"min": 0,
"max": 100,
"pin": 0,
"color": "#6f6faf",
"manual": false,
"value": 0,
"profile": {
"type": "random",
"config": {
"start": "00:00:00",
"end": "23:59:59"
},
"min": 0,
"max": 100
}
}
},
"jack": "1",
"enable": true
}
Thats it.
Now, regarding what profiles are available and their specific configuration (details here). You can get example configuration in individual profile specific test file in that link.
- Example: Auto: The original 2.0 style setup. Where intensity is specified at 2 hour interval. e.g. 12 set points are provided. config
- All profiles have a min max value that is used to decide the range of values profile can generate. When not defined 0 and 100 used.
- Threres diurnal, sine and random profile that simulates specific daily pwm patterns
- Lunar profile does a concave intensity curve with amplitude varying across different days of the months (foolmoon and new moon)
- Composite profile take a list of sub-profile and iterates over them. Use composite profiles made of different random profiles with varying min/max intensity to simulate reef crest like effect. Use composite profile made with diurnal profile of differnet min/max values to simulate tidal waves.
Currently there's no charting available to visualize the effect, its only evident via graphana/adafruit. This makes it hard to experiment. I am working on to fix that (better charting support for light profiles)


