{"id":22583,"date":"2022-10-13T11:54:54","date_gmt":"2022-10-13T10:54:54","guid":{"rendered":"http:\/\/www.akehedman.se\/wordpress\/?p=22583"},"modified":"2022-10-13T11:54:55","modified_gmt":"2022-10-13T10:54:55","slug":"python-script-to-read-1-wire-sensors-and-more-python-scripts-vscp-iot","status":"publish","type":"post","link":"https:\/\/www.akehedman.se\/wordpress\/?p=22583","title":{"rendered":"#Python script to read #1-wire sensors and more Python scripts #VSCP #IoT"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22584\" src=\"https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2016\/12\/thermometer_type2.png?resize=105%2C329\" alt=\"\" width=\"105\" height=\"329\" srcset=\"https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2016\/12\/thermometer_type2.png?w=105&amp;ssl=1 105w, https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2016\/12\/thermometer_type2.png?resize=96%2C300&amp;ssl=1 96w\" sizes=\"auto, (max-width: 105px) 100vw, 105px\" \/><\/p>\n<p>The most important mission with a m2m\/IoT\/whatever framework like VSCP is to make the world simpler for the end user. Yes for the &#8220;end user&#8221;, NOT for the developer.\u00a0 That said it is of course good if things are as easy as possible for the developer to.<\/p>\n<p>If you are new to VSCP the system is always overwhelming. It is a big system with many possibilities, but the <strong>event<\/strong> is central, VSCP is after all an event based system, and when your data is on the VSCP standardized event format you can present it, store it, react on it or calculate on it in a standardized way. Any solution you come up with that handles events will become a reusable component. For you and for others if you share your work. For instance. If you make a software that diagram measurement value and your intention is to show temperature changes this same piece of software will be useful for someone else to display concentration variations in a fluid of a process industry by just changing the description of the diagram labels.<\/p>\n<p>VSCP events have a class and a type that specify what the event describes. This is typically a &#8220;measurement&#8221; or &#8220;info&#8221; or &#8220;control&#8221;. Samples are<\/p>\n<p>Class=10, Type=6\u00a0 The event describes a temperature.<br \/>\nClass=30, Type=5 Turn on something<\/p>\n<p>You can read all about them <a href=\"http:\/\/www.vscp.org\/docs\/vscpspec\/doku.php?id=level_i_events\">here<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The most important mission with a m2m\/IoT\/whatever framework like VSCP is to make the world simpler for the end user. Yes for the &#8220;end user&#8221;, NOT for the developer.\u00a0 That said it is of course good if things are as easy as possible for the developer to. If you are new to VSCP the system [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-22583","post","type-post","status-publish","format-standard","hentry","category-swedish"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":39265,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=39265","url_meta":{"origin":22583,"position":0},"title":"New release of the VSCP helper library","author":"\u00c5ke Hedman","date":"2021-06-28","format":false,"excerpt":"New release of the VSCP Helper library 15.0.0 The helper library is a C library for the VSCP IoT\/m2m framework. See the repository main page for installation information and links to full documentation. This is a full rewrite and update of the VSCP helper library to be compliant with the\u2026","rel":"","context":"In &quot;Swedish&quot;","block_context":{"text":"Swedish","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23253,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=23253","url_meta":{"origin":22583,"position":1},"title":"#JavaScript in decision matrix of #VSCP #IoT #m2m | The Frogs blog","author":"\u00c5ke Hedman","date":"2017-02-07","format":false,"excerpt":"Now it is possible to use execution of JavaScript as a result from a triggered action in the decision matrix of the VSCP Daemon.\u00a0 Things that is triggering an action can typically be events from ex\u2026 Source: #JavaScript in decision matrix of #VSCP #IoT #m2m | The Frogs blog","rel":"","context":"In &quot;Swedish&quot;","block_context":{"text":"Swedish","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9883,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=9883","url_meta":{"origin":22583,"position":2},"title":"#VSCP &#038; Friends 0.4.0 Fluorine is out #m2m #iot","author":"\u00c5ke Hedman","date":"2013-09-18","format":false,"excerpt":"It been quite some time now since the last official release of VSCP & Friends but here its is, the brand new 0.4.0 Fluorine version, the free and open source framework for M2M and IoT setups. As of 28 of August VSCP & Friends has become thirteen and is now\u2026","rel":"","context":"In &quot;English&quot;","block_context":{"text":"English","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17972,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=17972","url_meta":{"origin":22583,"position":3},"title":"Easy IoT with VSCP: Easy IoT with VSCP: 1 &#8211; Int&#8230; | Freescale Community","author":"\u00c5ke Hedman","date":"2015-05-26","format":false,"excerpt":"Hello World \u00a0 This blog will document my experience in creating a practical IoT project using Freescale hardware. An open source application layer Source: Easy IoT with VSCP: Easy IoT with VSCP: 1 - Int... | Freescale Community","rel":"","context":"In &quot;Swedish&quot;","block_context":{"text":"Swedish","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":39792,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=39792","url_meta":{"origin":22583,"position":4},"title":"Ny demo: Effekt\/str\u00f6m och sp\u00e4nning i realtid","author":"\u00c5ke Hedman","date":"2021-09-02","format":false,"excerpt":"Jag har adderat ny\u00a0demo\u00a0till dom existerande\u00a0demo sidorna. Den h\u00e4r demon visar aktuellt effektuttag h\u00e4r i huset\/kontoret. Data samlas in fr\u00e5n en smart elm\u00e4tare fr\u00e5n Ellevio med ett \u00f6ppet interface\u00a0. Mer info om hur man ansluter till den smarta elm\u00e4taren finns\u00a0h\u00e4r. H\u00e4r finns ocks\u00e5 ett alternativt python script f\u00f6r den som\u2026","rel":"","context":"In &quot;Techstuff&quot;","block_context":{"text":"Techstuff","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=22"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2021\/09\/Screenshot-from-2021-09-02-21-23-11.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2021\/09\/Screenshot-from-2021-09-02-21-23-11.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2021\/09\/Screenshot-from-2021-09-02-21-23-11.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.akehedman.se\/wordpress\/wp-content\/uploads\/2021\/09\/Screenshot-from-2021-09-02-21-23-11.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":38850,"url":"https:\/\/www.akehedman.se\/wordpress\/?p=38850","url_meta":{"origin":22583,"position":5},"title":"Projekten","author":"\u00c5ke Hedman","date":"2021-05-18","format":false,"excerpt":"S\u00e5 n\u00e5r jag d\u00e5 en tr\u00f6skel. En g\u00e5-och-l\u00e4gga-sig-tr\u00f6skel. N\u00e5gra buggar fixade. N\u00e5gra problem l\u00f6sta. Lite ny kod. Ett minneskort som pajar. M\u00e5ste flytta \u00f6ver gammalt. En demo som skall verifieras. Fungerar den med det nya? Jod\u00e5. Ja s\u00e5d\u00e4r fortg\u00e5r det. En tisdag. Tror jag att det \u00e4r. Jo. Ganska s\u00e4kert.\u2026","rel":"","context":"In &quot;Betraktelser &amp; Ber\u00e4ttelse&quot;","block_context":{"text":"Betraktelser &amp; Ber\u00e4ttelse","link":"https:\/\/www.akehedman.se\/wordpress\/?cat=24"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p68PL2-5Sf","_links":{"self":[{"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/22583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22583"}],"version-history":[{"count":1,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/22583\/revisions"}],"predecessor-version":[{"id":43041,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/22583\/revisions\/43041"}],"wp:attachment":[{"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.akehedman.se\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}