Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] Control your Witty Pi 4 with Python

3 Posts
3 Users
1 Likes
493 Views
(@eagleshot)
Posts: 32
Eminent Member
Topic starter
 

Hello everyone 😀

For my time-lapse camera project I needed a way to control my Witty Pi from Python, so I've developed a little Python library that I thought maybe someone would find useful. With the library you can do the following things:

  • Sensor Reading: Read sensor values such as voltage, current and temperature from the Witty Pi 4 onboard sensors.
  • Configuration: Configure different parameters of the Witty Pi like the low and recovery voltage or synchronize the time with the internet.
  • Scheduling: Create (and apply) very simple daily recurring schedules.

The library is open source and can be found here: https://github.com/Eagleshot/WittyPi4Python (Feedback is very welcome!)
I'm also currently working on an update that will allow you to create more complex schedules (e.g. with sunrise and sunset according to your location).

Best regards
Eagleshot

 

 
Posted : 27/04/2024 10:09 pm
mmoollllee reacted
Topic Tags
(@andrew-simpson17)
Posts: 106
Estimable Member Customer
 

Good of you to share.

 
Posted : 30/04/2024 2:24 pm
(@guldberg)
Posts: 6
Active Member
 

Eagleshot,

Thanks very much for sharing your python library.

I'm running a number of wildlife cameras on PiZ 2W / wittyPi4 and hope to make use of your library in the near future.

Regards,  guldberg

 
Posted : 16/05/2024 11:58 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.