Go to advanced search

by boelle
Thu May 14, 2020 9:38 pm
Forum: Networking and servers
Topic: Looking for a Noobs guide on ssh tunnels
Replies: 2
Views: 159

Re: Looking for a Noobs guide on ssh tunnels

yep, it got the ball rolling again

thanks :-D
by boelle
Thu May 14, 2020 2:49 pm
Forum: Networking and servers
Topic: Looking for a Noobs guide on ssh tunnels
Replies: 2
Views: 159

Looking for a Noobs guide on ssh tunnels

I have a number of pi's located arround the city which runs octoprint (port80) from home i want to be able to access them and i allready have an ubuntu box running so what i want is that the pi's ssh home to the ubuntu box and the ubuntu box should be able to connect to the octoprints but i'm a noob...
by boelle
Thu Apr 23, 2020 8:03 am
Forum: Advanced users
Topic: simple sql dump & download of whole ftp server
Replies: 4
Views: 169

Re: simple sql dump & download of whole ftp server

thanks, that was simple enough that a dummie like me can figure it out

i edited the first post as i also need to connect to my hoster via FTP and i want to dump everything in to a single file also


you got a quick fix for that too?
by boelle
Thu Apr 23, 2020 7:43 am
Forum: Advanced users
Topic: simple sql dump & download of whole ftp server
Replies: 4
Views: 169

simple sql dump & download of whole ftp server

Hi I tried to use the old friend google on how to backup at remote mysql database to the pi but got a to big a mix of things and my brain shorted out what i'm after is a simple command line command that can dump a mysql database to a file i know the command should contain the server, database and us...
by boelle
Fri Mar 06, 2020 8:16 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

Re: each line in a seperate variable

figured it.... it was my arduino code its now: int status = 0; void setup() { pinMode(13, OUTPUT); Serial.begin(9600); while (!Serial); //Serial.println("Input 1 to Turn LED on and 2 to off"); } void loop() { if (Serial.available()) { int state = Serial.parseInt(); if (state == 1) { status = 1; digi...
by boelle
Fri Mar 06, 2020 8:03 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

Re: each line in a seperate variable

Code: Select all

       ser.write('2'.encode())
       time.sleep(1)

did not work either
by boelle
Fri Mar 06, 2020 7:40 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

Re: each line in a seperate variable

i came up with this very low tech way import serial ser = serial.Serial('/dev/ttyACM0',9600) while True: read_serial = ser.readline() print (read_serial.decode("utf-8", "strict"), end='') str1, str2, str3, str4, str5, str6, str7, str8, str9 = read_serial.decode("utf-8", "strict").split('*') print (s...
by boelle
Fri Mar 06, 2020 6:52 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

Re: each line in a seperate variable

Is the number of lines/sensors constant ? yes Is there a marker that tells the program that this is the first sensor ? not currently, but i could add a static start or bracket Can you rework the arduino code to give more information so that its easier to parse ? yes, i guess As a very general tip I...
by boelle
Fri Mar 06, 2020 6:49 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

Re: each line in a seperate variable

Can you include your Arduino sketch so we can see how the data originates from that. int status = 0; void setup() { pinMode(13, OUTPUT); Serial.begin(9600); while (!Serial); //Serial.println("Input 1 to Turn LED on and 2 to off"); } void loop() { if (Serial.available()) { int state = Serial.parseIn...
by boelle
Fri Mar 06, 2020 5:11 pm
Forum: Python
Topic: each line in a seperate variable
Replies: 8
Views: 376

each line in a seperate variable

Hi i have an arduino sending sensor data, each sensor sends it own line 1 2 3 4 5 6 7 my code so far import serial ser = serial.Serial('/dev/ttyACM0',9600) while True: read_serial = ser.readline() print (read_serial.decode("utf-8", "strict"), end='') i have tried to look arround with google on how t...
by boelle
Tue Feb 18, 2020 10:12 pm
Forum: Other projects
Topic: use the pi as BT range extender
Replies: 0
Views: 166

use the pi as BT range extender

has this been done before

capture and send BT over ethernet/wifi and send it out on another pi effective building a range extender?
by boelle
Sun Feb 09, 2020 3:39 pm
Forum: Python
Topic: flask/python/html... want to publish to mqtt when slider is moved
Replies: 1
Views: 311

flask/python/html... want to publish to mqtt when slider is moved

I know the title is confusing but let me try to explain i have build up a webpage and i got the slider added and the max value is set by sub'ing to mqtt what i'm building here is a central control panel to control roller blinds in a house, not sure how many there will be in total yet the roller blin...
by boelle
Sun Feb 09, 2020 12:41 am
Forum: Networking and servers
Topic: ras pi 4 nas and replication over internet
Replies: 7
Views: 680

Re: ras pi 4 nas and replication over internet

castletonroad wrote:
Sat Feb 08, 2020 10:56 pm
You would need to ensure a fixed IP at one end
not a problem, fixed ip at both ends
by boelle
Sun Feb 09, 2020 12:41 am
Forum: Networking and servers
Topic: ras pi 4 nas and replication over internet
Replies: 7
Views: 680

Re: ras pi 4 nas and replication over internet

boelle wrote:
Sat Feb 08, 2020 12:31 pm


but will either of us be able to access the others data?
by boelle
Sat Feb 08, 2020 12:31 pm
Forum: Networking and servers
Topic: ras pi 4 nas and replication over internet
Replies: 7
Views: 680

Re: ras pi 4 nas and replication over internet

i wanted to try ask this on the owncloud forum but some cert issue prevented me from accessing the site anway, me and my uk based has been thinking about using own cloud but will either of us be able to access the others data? one pi will of course run own cloud and the other pi will just sync the f...
by boelle
Sat Feb 08, 2020 12:27 pm
Forum: General discussion
Topic: execute python script on another pi
Replies: 6
Views: 225

Re: execute python script on another pi

mqtt was the answer for me
by boelle
Thu Feb 06, 2020 8:45 pm
Forum: General discussion
Topic: execute python script on another pi
Replies: 6
Views: 225

Re: execute python script on another pi

https://gpiozero.readthedocs.io/en/stab ... _gpio.html

it will do the trick, just need to find time to implement it
by boelle
Thu Feb 06, 2020 8:35 pm
Forum: General discussion
Topic: execute python script on another pi
Replies: 6
Views: 225

Re: execute python script on another pi

Would using the Remote GPIO feature of the gpiozero library be any help? https://gpiozero.readthedocs.io/en/stable/recipes_remote_gpio.html will give it a read, but the goal is to free the main script so its not held up for the 15 sec or how long it takes to roll up blinds but yeah, let the remote ...
by boelle
Thu Feb 06, 2020 8:33 pm
Forum: General discussion
Topic: execute python script on another pi
Replies: 6
Views: 225

Re: execute python script on another pi

currently i have this as part of the current script 34 def stepper(DIRECTION, STEPS): 35 36 37 38 39 if DIRECTION == 1: 40 DIR = 20 # Direction GPIO Pin 41 STEP = 21 # Step GPIO Pin 42 CW = 1 # Clockwise Rotation 43 CCW = 0 # Counterclockwise Rotation 44 SPR = 2038 # Steps per Revolution (360 / 11.2...
by boelle
Thu Feb 06, 2020 8:27 pm
Forum: General discussion
Topic: execute python script on another pi
Replies: 6
Views: 225

execute python script on another pi

i have made a python+flask thing that can control heating and roller blinds problem is the roller blinds are moved by a stepper and hence takes time to execute and since a room most likely will have more roller blinds i was thinking of offloading the job to a pi zero but google was not much help or ...
by boelle
Tue Dec 31, 2019 2:35 pm
Forum: Networking and servers
Topic: ras pi 4 nas and replication over internet
Replies: 7
Views: 680

Re: ras pi 4 nas and replication over internet

will have a look at it ones newyear party stuff is over

i assume that it can be run on a pi too (screenshots where from mac)
by boelle
Tue Dec 31, 2019 1:14 pm
Forum: Networking and servers
Topic: ras pi 4 nas and replication over internet
Replies: 7
Views: 680

ras pi 4 nas and replication over internet

I have an idea and it might not be so well thought out but basicly i want to build a nas with raid 6, no problem finding guides etc for that but i also want to have a remote copy of that (either at parents or friend etc) it would be nice if both ends could write to the nas but not look in to each ot...
by boelle
Fri Dec 20, 2019 8:38 pm
Forum: Automation, sensing and robotics
Topic: radiator valve head hacking
Replies: 26
Views: 1444

Re: radiator valve head hacking

HR20_Technical_notes.pdf page 3

that is what i was looking for :-D

if i get it right sending A40 would set demand temp to 20?
by boelle
Fri Dec 20, 2019 5:15 pm
Forum: Automation, sensing and robotics
Topic: radiator valve head hacking
Replies: 26
Views: 1444

Re: radiator valve head hacking

i think i got all info i need, except what serial commands to send i looked at https://github.com/OpenHR20/OpenHR20/bl ... HR20/com.c but that did not tell me anything

Go to advanced search