erellaz / seisberry

Code for Raspberry Pi seismograph, 3 components
MIT License
8 stars 3 forks source link

Feature Request: Send data over UDP for use with rsudp for real time data viewing #3

Open Trent-l opened 2 months ago

Trent-l commented 2 months ago

Hi there, recently built a seisberry and am very happy with the form and simplicity of it. The only downside I'm finding is the inflexibility of viewing and processing the data. After some research I happened across the open source rsudp software intended for use with the raspberry shake https://github.com/raspishake/rsudp. I have very limited expertise in programming, but it seems like it would be relatively straightforward to send the data from the seisberry over UDP in the format that the rsudp software is expecting. The necessities of the datastream are here: https://manual.raspberryshake.org/udp.html

Individual data packets are sent to port 8888 on the Shake Pi computer by default. The output format is straightforward:

    Each data packet contains data for a single channel only
    Entire data packet is wrapped with open and closing braces: { }
    All fields are separated by a comma
    First element defines the channel name - string in single quotes
    Second element defines the timestamp, in epoch seconds, down to milliseconds, of the first data point - float
    All remaining elements are the data points themselves - integer

...and here is an example packet:

{'SHZ', 1507760140.530, 614, 916, 1095, 1156, 839, 923, 861, 856, 861, 789, 568, 823, 965, 788, 835, 991, 1028, 1225, 1142, 828, 682, 635, 771, 978, 834, 1167, 1116, 888, 627, 564, 944, 994, 780, 652, 811, 915, 832, 1134, 1020, 594, 756, 782, 748, 810, 864, 936, 977, 1014, 676, 502}

If you could at least point me to how to parse the raw data coming off the ad/da board I can probably bodge something together to send the packets as needed.

Thanks!

erellaz commented 2 months ago

I will look into it. Also want to do a new 32 bit version of the seismograph, and update the Linux OS...

Trent-l commented 2 months ago

That would be fantastic! Very excited to be able to view the live data. If there's anything I can do to help out let me know. Also, here is the 3d printed platform we designed. Please feel free to link to it or upload the files directly to the Seisberry page.

https://github.com/Trent-l/Seisberry-3d-printed-platform

erellaz commented 2 months ago

Thanks, I added your mount to the project website. This is an excellent alternative to the box

Cheers.

On Mon, Jul 29, 2024 at 10:36 PM Trent-l @.***> wrote:

That would be fantastic! Very excited to be able to view the live data. If there's anything I can do to help out let me know. Also, here is the 3d printed platform we designed. Please feel free to link to it or upload the files directly to the Seisberry page.

https://github.com/Trent-l/Seisberry-3d-printed-platform

— Reply to this email directly, view it on GitHub https://github.com/erellaz/seisberry/issues/3#issuecomment-2256867365, or unsubscribe https://github.com/notifications/unsubscribe-auth/APK2VBX5HCJ5IBPLXNLSWCLZO2RULAVCNFSM6AAAAABLU2SUKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWHA3DOMZWGU . You are receiving this because you commented.Message ID: @.***>

-- Guillaume S. RICHARD