Skip to content

Bloom Sky2 Receiver using a Raspberry Pi as a server to replace the bloomsky.com

Notifications You must be signed in to change notification settings

shaunelectricecho/bloomsky2rx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

bloomsky2rx

Using a Raspberry Pi as a weather data and image server to replace the bloomsky.com server for a Bloomsky Sky2 device.

Recently (Apr 2022) I purchased an expensive Bloomsky Sky2 device but it won't register and their tech support has vanished.

Set up the Rasberry Pi as a Wireless Access Point

Firstly I set up the Pi as a wireless access point using these directions; https://pimylifeup.com/raspberry-pi-wireless-access-point/

Using a WiPi USB dongle on a Pi 2B running Raspian buster removed the line 'driver=nl80211' from the hostapd.conf file. Also wherever the instructions use the term wlan0 replaced it with wlx00c141000b99 as gleamed from running the ifconfig command on the Pi.

Attach a Bloomsky Sky 2 device to the Pi WAP

Used the Bloomsky phone app to attach the Sky2 to the new Pi wlan (right up to the point where it says 'name already exists loser'). You may need to finish up by short-press the Sky2 wifi button to stop it flashing green. If you need to start again then long-press it for about 10 seconds.

To assist with debugging I monitored the Sky 2 chatter with the bloomsky server using Wireshark and tcpdump.

Some Pi housekeeping

I needed to change the apache server on my Pi to port 8080 so it wouldn't clash with the listener script

Redirected the server 'bskybackend.bloomsky.com' to the Pi's WAP inet address (as per ifconfig) in sudo nano /etc/hosts by adding the line: 192.168.220.1 bskybackend.bloomsky.com then restarted the dnsmasq service: sudo service dnsmasq restart

The Script

I've borrowed and butchered the code/ideas from these three sources:

Being a simple person I liked the structure of the code in urljpeg.py, many may disagree.

Run the code thusly: sudo python3 ./sky2rx.py 192.168.220.1

The site long/lats are hard coded for the sun up/down times so you'll need to change to your location. Basically the script sends the Sky 2 device the local sunrise, sunset and current times in the 200 response so that it only sends photos during the day. The saved picture/data file location is also currently hard coded.

About

Bloom Sky2 Receiver using a Raspberry Pi as a server to replace the bloomsky.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages