Search found 25 matches

by johnv
Sat Feb 15, 2020 6:44 pm
Forum: Hardware Projects
Topic: plant watering
Replies: 39
Views: 5581

Re: plant watering

i apreciate your help, sir! have a great weekend!
by johnv
Thu Feb 13, 2020 7:22 pm
Forum: Hardware Projects
Topic: plant watering
Replies: 39
Views: 5581

Re: plant watering

import machine from machine import Pin from machine import ADC import time from time import sleep moisture = ADC(0) #declare soil sensor pump = Pin(4, Pin.OUT) #declare pin 4 as output, naming it pump dry_value = 600 #declare dry_value as 600 while True: #create infinit loop till somthing breaks th...
by johnv
Mon Jan 20, 2020 11:03 am
Forum: General Discussion and Questions
Topic: umqtt
Replies: 2
Views: 892

Re: umqtt

Tnx mate!
by johnv
Sun Jan 19, 2020 8:22 pm
Forum: General Discussion and Questions
Topic: umqtt
Replies: 2
Views: 892

umqtt

hi, i installed mosquitto to the raspberry pi, and umqtt is up and running on the esp8266, but frankly i have no idee how to publish sensor data, and i seem unable to find any documentation or somesort, i can write text messages from pub to sub mosquitto_pub -m ... -t ... mosquitto_sub -t ... but i ...
by johnv
Fri Dec 27, 2019 1:59 pm
Forum: Hardware Projects
Topic: plant watering
Replies: 39
Views: 5581

Re: plant watering

hi, for reading the values and future stuff and controlling, maybe using an app, what is the better way to do it, learn about mqtt, or a websocket or try building a server??? i'm kinda lost on this subject, i think there is to much info on this subject, i end up installing node red on the raspberry,...
by johnv
Tue Dec 24, 2019 7:56 am
Forum: General Discussion and Questions
Topic: booting main.py
Replies: 5
Views: 646

Re: booting main.py

i will look into it, tnx for the info! ;

i ordered this book, i hope it wil be any good :D Advanced Programming in MicroPython By Example by magda yuri

and a small bookbinding machine, so i can print out stuff from the internet and keep it tighty :lol:
by johnv
Mon Dec 23, 2019 8:54 pm
Forum: General Discussion and Questions
Topic: booting main.py
Replies: 5
Views: 646

Re: booting main.py

this is the code from the main.py folder import sys sys.path sys.path.insert(0,'/mydir/mymain.py') print (sys.path.insert) from mydir import mymain so i went for the third option, i must say it took a while but i learned alot in my search :D i created a folder named 'mydir' and put 2 files in it: 'm...
by johnv
Mon Dec 23, 2019 2:00 pm
Forum: General Discussion and Questions
Topic: booting main.py
Replies: 5
Views: 646

booting main.py

hi,

i want to run a script directly from booting the device,

when i make a file main.py it runs it straight from boot,

but when i make a folder main.py with my file as a subdirectory it doesnt,

can you run subdirectories in main.py or can you only run it as a single file?
by johnv
Fri Dec 20, 2019 10:32 pm
Forum: General Discussion and Questions
Topic: magazines, tech sites
Replies: 2
Views: 449

Re: magazines, tech sites

tnx man!
by johnv
Fri Dec 20, 2019 8:42 am
Forum: General Discussion and Questions
Topic: magazines, tech sites
Replies: 2
Views: 449

magazines, tech sites

hi i was wondering if there are any good tech magazines out there that are covering micropython, i would love read into it a little more, hardcover would be great so i can read it during lunch, i have a e-reader as well, or some good tech sites, for news and stuff my native language is dutch, but en...