Tiny Core on Raspberry Pi, with homebrew arduino weather station hardware

199 views
Skip to first unread message

Matthew Brauer

unread,
Jan 31, 2016, 7:17:43 PM1/31/16
to weewx-user
Hello,

I'm wondering if anyone has implemented weewx on the RPi for use with an arduino-based weather station? I'm using a weathershield with an RF24 transmitter to an RPi2. The Pi is unual in that it is not running Raspian, but rather Tiny Core Linux.

For those who don't know, Tiny Core is an "in memory" version of Linux that is designed for embedded systems. It's very small, boots up quickly and can be shut off instantly with no damage to the filesystem. Using TC has the added benefit of avoiding writes to the SD card.

I've written a driver for the RF24 connection to the arduino, and am having weewx on the Pi log the data to a mysql server on another linux machine. Once it's been operating smoothly for awhile I'll have it log to wunderground, etc.

HOWEVER, there are some little oddities that crop up and I'd like to chat with anyone who has implemented a similar custom driver.

If I could get another pair of eyes on this to help make it production quality, I'd like to contribute it back to the repo.

Regards,
Matt

vince

unread,
Jan 31, 2016, 8:04:36 PM1/31/16
to weewx-user
On Sunday, January 31, 2016 at 4:17:43 PM UTC-8, Matthew Brauer wrote:
I'm wondering if anyone has implemented weewx on the RPi for use with an arduino-based weather station? I'm using a weathershield with an RF24 transmitter to an RPi2. The Pi is unual in that it is not running Raspian, but rather Tiny Core Linux.



You'd need to have enough python support to meet the expectations of the weewx software.  Look at the 'how to install' section in the Users' Guide for the setup.py method for a Debian system which should give you the basic idea of prerequisites. 

Thomas Keffer

unread,
Jan 31, 2016, 8:55:43 PM1/31/16
to weewx-user
Never written a weewx driver that talks to an Arduino board, but that sounds like a really interesting system.

Do you have a repo with your source?

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Brauer

unread,
Jan 31, 2016, 11:30:52 PM1/31/16
to weewx-user
Tiny Core is sufficiently different from Debian that this would not have been much help.

Regardless, I've written the driver and gotten it to work well with weewx, barring the occasional glitch. I'm mostly interested in connecting with others who may have attempted the same, in order to compare notes.

I'll set up a github repo for the source--both the python weewx driver on the Pi and the arduino code (which borrows heavily from the work of others).

Matthew Brauer

unread,
Jan 31, 2016, 11:53:59 PM1/31/16
to weewx-user

Matthew Brauer

unread,
Feb 1, 2016, 12:11:12 AM2/1/16
to weewx-user
Once I can get the archiving feature operating reliably, my goal is to use Tor Hveem's Amatyr front end (as he demonstrates here).

I still need to adapt his lua code to use my MySQL database instead of Postgres.

The installation is shaping up to look like:
----------------------------------------                                      ---------------------------------                          ---------------------------
| Arduino with weather shield |-- RF24 ====> RF24 -- |  RPi2, TIny Core Linux |===  SSL ===> | Ubuntu                  |
|  "weathercomm.ino"             |                                      |          weewx, with         |                         | MySQL server       |
----------------------------------------                                      |    "weatherbox" driver   |                         | nginx web server   |
                                                                                      ---------------------------------                         ----------------------------

Francis Snowden

unread,
May 21, 2021, 8:43:34 AM5/21/21
to weewx-user
Hi,

Apologies for raising a zombie post from the past, but I was interested in runing Weewx on PiCore/Tinycore but note the extensions (software) need to be in the  .tcz format and not via apt. If I understand your arrangement above, you have weewx installed on the pi?

How did you install weewx? I would like to use a PiZero connected to a TFA Nexus weather station via USB so I don;t nee the arduino drivers. I used to use Wview a long time ago but family kept turning off the Pi and corrupting the SD card, hence wanting to use Picore to avoid problems.

Regards

Frank
Reply all
Reply to author
Forward
0 new messages