Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Web moniitoring with Perl, comments and suggestions on general approach please

by marto (Cardinal)
on Jan 24, 2017 at 10:09 UTC ( [id://1180204]=note: print w/replies, xml ) Need Help??


in reply to Web moniitoring with Perl, comments and suggestions on general approach please

Some points. Make life easier on yourself :) A Raspberry Pi 3 has Quad core ARM, @ 1.2GHz, 1GB RAM, has wired and wireless networking, Bluetooth and Blutooth LE, has GPIO and USB to talk to whatever else you wish. Storage, stick in a large Micro SD card, (optionally) add a couple of USB thumb drives, backup data (along with your config data & code) remotely should the bees attack (or you know, legitimate disaster recovery).

Weather/environment proof cases are relatively cheap, or if you have time fairly easy to build. You could run your data logging and code and host the website on the Pi, restricting access as you wish. I'd opt for SQLite over mysql (consider also a lighter web server such as lighttpd), you could have real time (ish) charting returning JSON data to some of todays modern JavaScript charting solutions. I've been playing with Mojolicious (see also Mojolicious::Lite) and find it to be a nice modern framework to build upon.

Update: added some more links.

Replies are listed 'Best First'.
Re^2: Web moniitoring with Perl, comments and suggestions on general approach please
by predrag (Scribe) on Jan 24, 2017 at 18:52 UTC

    marto Thanks again for the comments.

    The reason why I was thinking about PICs is probably because I like the idea "Small is beautiful" (Schumacher) in general. Of course, I understand that while working on a project, we have to have in mind the whole picture and choose what is the most appropriate, whether it is small or big. And as I wrote in other replies, before, I was't sure whether RPi is for me to go, and now I see it is, especially for some next projects I dream about. I know about RPi for maybe 2 years or a bit longer, but am not informed about new versions. Wow, this Raspberry Pi 3 is the same as my Virtual machine for CentOS 6 where I work with Perl!

    Weather/environment proof cases are relatively cheap, or if you have time fairly easy to build

    I don't know just now, but maybe will build itmyself. It will need a heating during the winter too.

    kind regards

    predrag

      Another option would be the ESP8266 clone boards, which should be fine for your purposes, alternatively the ESP32, is an upgraded board. They cost ~ 2 euro delivered from either ebay, aliexpress etc. They can be programmed using the Arduino IDE if you're already familiar with that, or via the other usual routes. Built in Wifi and so on, despite the relativity low specs you can do a lot with them. This tutorial give a short primer on the board and a working example of using it to read the values of 2 types of sensor, and display them on demand in a browser via a web server running on the board. Indeed there are lots of options open to you. Once you've had time to process them all please let me know which way you intend to go, or if you have further questions.

        marto thanks for your additional information and links.

        I've just wanted to know if Serbian company MikroElektronika produces something with ESP8266 and yes, they produce "WiFi3" as a complete self-contained WiFi solution carrying that chip.

        Indeed there are lots of options open to you.

        Yes, I see there is so many possibilities about this. I don't know what way I will take with this first project, but I think during the time, including next projects too, I will try few ways.

        Once you've had time to process them all please let me know which way you intend to go, or if you have further questions.

        Of course, and thanks for offering additional help. When I have some results of my work I will give a feedback to perlmonks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found