{"id":23602729,"url":"https://github.com/sensetecnic/wotkit-example-python-edison","last_synced_at":"2025-11-05T06:30:37.497Z","repository":{"id":32739389,"uuid":"36329811","full_name":"SenseTecnic/wotkit-example-python-edison","owner":"SenseTecnic","description":"A simple example to post data and actuate a relay using an Edison Arduino Board and WoTKit","archived":false,"fork":false,"pushed_at":"2015-05-27T00:26:01.000Z","size":496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-27T12:12:51.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SenseTecnic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T23:21:21.000Z","updated_at":"2015-05-26T23:23:13.000Z","dependencies_parsed_at":"2022-07-25T18:22:37.039Z","dependency_job_id":null,"html_url":"https://github.com/SenseTecnic/wotkit-example-python-edison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseTecnic%2Fwotkit-example-python-edison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseTecnic%2Fwotkit-example-python-edison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseTecnic%2Fwotkit-example-python-edison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseTecnic%2Fwotkit-example-python-edison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SenseTecnic","download_url":"https://codeload.github.com/SenseTecnic/wotkit-example-python-edison/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449583,"owners_count":19640535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T12:12:54.505Z","updated_at":"2025-11-05T06:30:37.446Z","avatar_url":"https://github.com/SenseTecnic.png","language":"Python","readme":"\nThis is a very simple script that posts data to a sensor and pulls from its control chanel using Sense Tecnic's IoT platform and an Intel Edison board.\n\nDependencies\n================\n\n* Python \u003e2.7\n* Wiringx86 (https://github.com/emutex/wiring-x86)\n\n\nGetting Started\n===============\n\nYou will need to create a WoTKit account at https://wotkit.sensetecnic.com\n\nYou can generate a key and password at: http://wotkit.sensetecnic.com/wotkit/keys.\n\nYou can create a sensor to receive the data at: http://wotkit.sensetecnic.com/wotkit/sensors\n\nEdit the wotkit_demo.py file and modify the following lines to match your credentials and sensor name:\n\n```\nSENSOR_NAME = 'YOURSENSORNAME'\nUSERNAME = 'YOURUSERNAME'\nPASSWORD = 'YOURPASSWORD'\n```\n\nWiring Things Up\n================\n\nTo wire a sensor (e.g. a temp sensor):\n\n![alt](https://raw.githubusercontent.com/SenseTecnic/wotkit-example-python-edison/master/diagram-sensor_bb.png)\n\nTo wire a 5V relay:\n\n![alt](https://raw.githubusercontent.com/SenseTecnic/wotkit-example-python-edison/master/diagram-relay_bb.png)\n\nRunning Script\n================\n\nTo run the script run:\n\n```\npython wotkit-edison.py\n```\n\nRunning at Boot on Edison\n=========================\n\nEdison uses systemd for services, we have provided a file ```wotkit-edison.service``` that will run the shell script if located at ```/home/root/wotkit-example-python-edison/startwotkitedison.sh```.\n\nSo, first, make that file executable:\n\n\n```\ncd /home/root/wotkit-example-python-edison\nchmod a+x startwotkitedison.sh\n```\n\nCopy the service file to the ```lib/systemd/system``` folder.\n\n\n```\ncd /home/root/wotkit-example-python-edison\ncp wotkit-edison.service /lib/systemd/system/wotkit-edison.service\n```\n\nAnd now reload systemd and try to restart your service:\n\n\n```\nsystemctl daemon-reload\nsystemctl start wotkit-edison.service\n```\n\nIf everything is alright you should get no errors. If you want to configure it to start at boot enable it like so:\n\n```\n systemctl enable wotkit-edison.service\n\n```\n\nNow reboot and see if everything is alright.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensetecnic%2Fwotkit-example-python-edison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensetecnic%2Fwotkit-example-python-edison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensetecnic%2Fwotkit-example-python-edison/lists"}