There MAY be "good stuff" here already, but unless you are really keen, I would suggest you look elsewhere.... AFTER, please, sending me a brief message to say how you had your time wasted today... Who sent you here? In what circumstances? (If you can help me, then you will have spared the next person, right?) Contact details at bottom. (You don't have to give your email address or anything.)
This page's unique content is just a little way down the page... below the " v v v v v" s
FarWatch and FarWatchWatcher have been around since before "IoT" ("Internet of Things") became a popular expression, but they are of that world.
...is a concept, a range of hobbyist/ school-project friendly devices and software. (Not that it is restricted to those arenas!) FarWatch systems allow you to "watch" something "from afar". Not "watch" as in a live video feed, but to "watch" by watching numbers... graphs of the temperature someplace, for instance. Some FarWatch installations have an extra capability: The watcher can, for instance, turn a light on at the watched place.
This may sound terribly esoteric, but getting started needn't require a nuclear physicist on the team.
Arduservers are the best developed devices for the watched place. But you can "brew your own", in any hardware you like.
...are, up to now, mostly applications written to run in a Windows PC. But again, brew your own!
They access the data at the watched site over the internet (or just your LAN), and use it in various ways... for instance to display graphs of historical and current conditions, to record the data in files. Or even to set the computer beeping to announce a problem.
v v v v v v v v v v
The processor has 1 bit of output available to the user. At present, that bit controls an LED which shines on a phototransistor. (See next.) The LED's state can be changed by anyone who accesses the webserver with a browser, and issues a "read" command.
The processor also has "knows" the reading from an analog sensor. This is available to anyone who accesses the webserver with a browser, and issues a "read" command... read Arduserver's page carefully. It is not returned as part of the hidden, machine-friendly string that FarWatchWatchers watch.
If you go to the server directly, there are commands that let you turn an LED on or off.
Server returns like...
... which translates as follows...
At 8/21, this server has run well for years, at least for reporting the two temperatures.
The temperatures are the temperatures in two rooms, in a home south of London, near the Channel, within ten miles of https://whatthreewords.com/whatthreewords.com (I hope to move one of them outside, or at least to near the kettle in the kitchen, soon, but am too busy writing this for you just now!
I'm not sure that all of the followjung are woking properly at 18 Aug 21.
The counters: One is attached to a push button. (I was doing testing.) The other counts edges seen if a PIR sees activity in work-room. As long as any exterior door is open, a stream of pulses will be connected to that same counter.
The analog value comes from a phototransistor that sees only the LED controlled by the processor that serves the page.
The input is connected to a toggle switch. Again... this is just for system testing. Someday I'll attach it to something significant.
See http://sheepdogguides.com/elec/misc/esp8266/Esp8266-Arduserver.htm for further details.
This reports a "tick count" and two temperatures and two humidities. Information on the sensors is at http://wywtk.com/ec/iec/iec220-HTU31D-tture-humidity.htm
167936,+93.75,29.37,+75.56,54.97 cccccc stt.tt hh.hh stt.tt hh.hh cccccc: 167936 in example. Iterations of main loop since power restored. stt.tt: +93.75 Temperature, in degrees F hh.hh: 29.37 Relative humidity, as a percent. ... then the stt.tt and hh.hh are repeated once.
At 18 Aug 21, the two sensors are close to one another. One is in the exhaust from a PC, the other is nearby.
Please get in touch if you discover flaws in this page. Please mention the page's URL. (wywtk.com/fw/du/by-pc-id.htm).
If you found this of interest, please mention in forums, give it a Facebook "like" or similar. If you want more of this stuff, help!? There's not much point in me writing these things, if no one feels they are of any use.
Unlike the clever Google search engine, this one merely looks for the words you type, so....
* Spell them properly.
* Don't bother with "How do I get rich?" That will merely return pages with "how", "do", "I"....
Please also note that I have three other sites, and that this search will not include them. They have their own search buttons.
My SheepdogSoftware.co.uk site, where you'll find my main homepage. It has links for other areas, such as education, programming, investing.
My SheepdogGuides.com site.
My site at Arunet.
Page has been tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. It passes in some important ways, but still needs work to fully meet HTML 5 expectations. (If your browser hides your history, you may have to put the page's URL into the validator by hand. Check what page the validator looked at before becoming alarmed by a "not found" or "wrong doctype".)
....... P a g e . . . E n d s .....