wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on May 15, 2022 17:00:21 GMT -8
Anyone figure out how not to take pictures at night and for that matter turn off LED? Wallace
|
|
|
Post by doxidad on May 16, 2022 3:37:01 GMT -8
Which LED? The one that flashes when a picture is taken or ?
|
|
|
Post by SDL on May 18, 2022 14:42:31 GMT -8
Look at the commands you can send the camera. In addition to camera cycle, you can turn off the LED and you could change the cycle to skip the night.
BP
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on May 19, 2022 14:59:21 GMT -8
Anything to save power. I'll ponder the commands W
|
|
|
Post by pagerman on May 23, 2022 3:17:32 GMT -8
I looked at the commands but couldn't figure out how to send them to the camera successfully.
|
|
|
Post by doxidad on May 23, 2022 4:00:55 GMT -8
You can modify testSkyCameRemote.py
Look for this section in the code: 157 158 # what ID to test 159 cameraID = "C939" <--- Make sure your cameraID is correct 160 #cameraID = "3BAD" 161 #cameraID = "F329" 162 #cameraID = "26FD" 163 #cameraID = "+" #sends to all cameras 164 # this command will be sent after an INFO messagetype 4 from cameraID 165 #sendWhatCommand = MQTTERASEMEMORY 166 #sendWhatCommand = MQTTCYCLECHANGE 167 #sendWhatCommand = MQTTBLINKXTIMES 168 #sendWhatCommand = MQTTRESOLUTION 169 #sendWhatCommand = MQTTBLINKXTIMES 170 #sendWhatCommand = MQTTUPDATEPARAM 171 #sendWhatCommand = MQTTSTARTDELAY 172 #sendWhatCommand = MQTTREBOOT 173 sendWhatCommand = MQTTTURNOFFBLINK <--- comment out all the commands and uncomment this one
Run the prrogram - sudo python testSkyCamRemote.py
You can use this program to set/change any of the available parameters See the SkyCamAssemblyAndTestManual. The settings and how to set them are near the end of the document.
|
|
|
Post by pagerman on May 23, 2022 4:08:15 GMT -8
How to change the cycle to skip night hours? And I did do that for the blink and it still blinks. Yes, the cameraID is correct.
|
|
|
Post by pagerman on May 23, 2022 4:13:50 GMT -8
Getting this: Traceback (most recent call last): File "testSkyCamRemote.py", line 5, in <module> import paho.mqtt.client as mqtt ImportError: No module named paho.mqtt.client pi@SwitchDocLabs:~/SDL_Pi_SkyWeather2 $
|
|
|
Post by SDL on May 24, 2022 10:00:47 GMT -8
Pagerman,
Is this our image or yours? Did you install the MQTT client?
"pip3 install paho-mqtt python-etcd"
BP
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on May 24, 2022 11:33:42 GMT -8
Reponse to testSkyCamRemote.py to stop blink sending messagetype 13 to:SKYCAM/F329/COMMANDS Traceback (most recent call last): File "testSkyCamRemote.py", line 46, in on_message sendMessage(client, cameraID, sendWhatCommand) File "testSkyCamRemote.py", line 142, in sendMessage print("Messge Sent:",myMessage) UnboundLocalError: local variable 'myMessage' referenced before assignment
I am trying to figure out how to schedule the sending of overnight delay and reset. The hassle seems to be not to miss your 1 shot in the morning otherwise you wait on the huge delay again. W
|
|
|
Post by doxidad on May 24, 2022 15:46:28 GMT -8
W, why not just let the camera transmit every minute and when the picture is received check the time and don't store it in the database if it is the time frame you don't want recorded. I have not looked at the mechanics of implementing this, but you may want to explore it.
|
|
|
Post by pagerman on May 26, 2022 3:51:16 GMT -8
BP - Your image . Tried installing MQTT. Got this still: Looking in indexes: pypi.org/simple, www.piwheels.org/simpleRequirement already satisfied: paho-mqtt in /home/pi/.local/lib/python3.7/site-packages (1.5.0) Collecting python-etcd Downloading www.piwheels.org/simple/python-etcd/python_etcd-0.4.5-py3-none-any.whl (43 kB) |████████████████████████████████| 43 kB 193 kB/s Requirement already satisfied: urllib3>=1.7.1 in /usr/lib/python3/dist-packages (from python-etcd) (1.24.1) Collecting dnspython>=1.13.0 Downloading www.piwheels.org/simple/dnspython/dnspython-2.2.1-py3-none-any.whl (269 kB) |████████████████████████████████| 269 kB 913 kB/s Installing collected packages: dnspython, python-etcd Successfully installed dnspython-2.2.1 python-etcd-0.4.5 WARNING: You are using pip version 20.3.1; however, version 22.1.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command. pi@SwitchDocLabs:~/SDL_Pi_SkyWeather2 $ sudo python testSkyCamRemote.py Traceback (most recent call last): File "testSkyCamRemote.py", line 5, in <module> import paho.mqtt.client as mqtt ImportError: No module named paho.mqtt.client pi@SwitchDocLabs:~/SDL_Pi_SkyWeather2 $
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on May 26, 2022 4:26:48 GMT -8
Just ignoring the picture doesn't save power. W
|
|
|
Post by doxidad on May 26, 2022 6:59:46 GMT -8
Just ignoring the picture doesn't save power. W Yep you're correct - not sure what I was thinking.
|
|
n7qnm
Junior Member
Posts: 80
|
Post by n7qnm on May 29, 2022 20:31:07 GMT -8
I had power issues with the SkyCam as well - Just reprogrammed it with a 30 minute cycle - hoping that will do the trick and let me stay running through cloudy days.
|
|