Go to advanced search

by Hacker'n'Tinker guy
Sat Feb 13, 2016 9:21 pm
Forum: Python
Topic: Python web socket suggestions
Replies: 6
Views: 2970

Python web socket suggestions

Hi there Which python library should i use to create a web socket I want it too be two way communication Very simple to use 20 lines max and miming features I am currently using flask as my web server so is there any extensions to use web sockets in flask? Please provide me with a 'Hello world' exam...
by Hacker'n'Tinker guy
Fri Feb 12, 2016 3:44 pm
Forum: Automation, sensing and robotics
Topic: How to update values continously on a Web page
Replies: 2
Views: 821

How to update values continously on a Web page

Hi there At the moment I am doing a home automation project. I need to show the status of a lamp on a Web pages that updates it self. At the moment I have built a node js application that polls a Web page that holds that the state of the lamp(separate Web server) I can retrieve the information corre...
by Hacker'n'Tinker guy
Mon Feb 08, 2016 5:31 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

thanks for spotting the missing parentheses
by Hacker'n'Tinker guy
Mon Feb 08, 2016 5:22 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

Are there any differences for tkinter between 2.7 and 3
by Hacker'n'Tinker guy
Mon Feb 08, 2016 5:22 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

It works in 3.4 :) but only the gui part
by Hacker'n'Tinker guy
Mon Feb 08, 2016 4:55 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

i am using 2.7
by Hacker'n'Tinker guy
Mon Feb 08, 2016 4:52 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

Made the library lower case

Code: Select all

Traceback (most recent call last):
  File "/Users/Daniel/gg.py", line 1, in <module>
    from tkinter import *
ImportError: No module named tkinter
by Hacker'n'Tinker guy
Mon Feb 08, 2016 4:50 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

what do i need to change
from tkinter import *
by Hacker'n'Tinker guy
Mon Feb 08, 2016 4:46 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

Re: No output using tinter module

No window, but it scrapes the data correctly
by Hacker'n'Tinker guy
Mon Feb 08, 2016 4:20 pm
Forum: Python
Topic: No output using tinter module
Replies: 10
Views: 1099

No output using tinter module

I do not get any output when using tinter(gui). I have used a root.mainloop() when the guy has been initialised PS. It is the first time i have used beautiful soup and the object is display the word of the day. GUI code from Tkinter import * root = Tk() def refresh(): print "click" def gui(word, def...
by Hacker'n'Tinker guy
Sun Nov 29, 2015 3:28 pm
Forum: Troubleshooting
Topic: /etc/inittab doesn't exist
Replies: 3
Views: 1396

/etc/inittab doesn't exist

When i type

Code: Select all

sudo nano /etc/inittab 
It returns an empty file
I am doing it over ssh
i am trying to free up the serial port for communication with arduino over usb
daniel
by Hacker'n'Tinker guy
Sat Nov 28, 2015 8:42 pm
Forum: Automation, sensing and robotics
Topic: how to use APC220 Wireless RF Modules with raspberry pi?
Replies: 3
Views: 1680

Re: how to use APC220 Wireless RF Modules with raspberry pi?

Yes, Yes (use the device file that created insted of /dev/ttyAMA0), That's one option (but there are others).
What do you mean by device file
by Hacker'n'Tinker guy
Sat Nov 28, 2015 8:14 pm
Forum: Automation, sensing and robotics
Topic: how to use APC220 Wireless RF Modules with raspberry pi?
Replies: 3
Views: 1680

how to use APC220 Wireless RF Modules with raspberry pi?

I am doing a rf project and to communicate between my rf nodes which are arduino powered and my central brain a rpi 2b i am using rf modules. I need a very good range(100m) urban. So i have decided to use APC220 RF transceivers. I know how to connect them to the arduino using a setup compared to bel...
by Hacker'n'Tinker guy
Fri Nov 27, 2015 6:14 pm
Forum: Automation, sensing and robotics
Topic: how to replace a switch with relay in a 2 switch circuit
Replies: 4
Views: 1343

Re: how to replace a switch with relay in a 2 switch circuit

If you replace that switch with a relay like that the Pi won't know if it is turning the light on or off. Say the relay is "off" then Com (COM) is connected to NO (L1). The light may be on or off, depending on the position of the switch. Change the switch and the light will change - your program wo...
by Hacker'n'Tinker guy
Fri Nov 27, 2015 5:17 pm
Forum: Automation, sensing and robotics
Topic: how to replace a switch with relay in a 2 switch circuit
Replies: 4
Views: 1343

how to replace a switch with relay in a 2 switch circuit

I want to control lights from rpi or arduino and the same time i want to have local control of the light through a physical wall switch. Below is a double switching circuit http://www.electronics-project-design.com/images/484xNxTwoWayLightSwitch.GIF.pagespeed.ic.eqvAP0lVcL.png so how do i replace on...
by Hacker'n'Tinker guy
Thu Nov 26, 2015 8:48 pm
Forum: Automation, sensing and robotics
Topic: Which rf transceiver for rpi/Arduino and code in python
Replies: 5
Views: 919

Re: Which transceiver for rf coms between rpi's and / or ard

What is the range and could you point me towards a python example?
Can you use a panstamp in the on a rpi without the shield as i want to use the gip for other purposes aswell
by Hacker'n'Tinker guy
Thu Nov 26, 2015 4:45 pm
Forum: Automation, sensing and robotics
Topic: Which rf transceiver for rpi/Arduino and code in python
Replies: 5
Views: 919

Which rf transceiver for rpi/Arduino and code in python

I am looking for advice on how to create a rf network to send and receive data at once. The master Arduino or rpi zero receives temperature readings from the slave nodes which passes it to a rpi 2b to upload to a web interface.And the opposite happens for a command e.g. light on. I have already done...
by Hacker'n'Tinker guy
Sun Sep 06, 2015 11:00 am
Forum: Python
Topic: How many 6 digit numbers are there that don't contain a 5
Replies: 26
Views: 3382

How many 6 digit numbers are there that don't contain a 5

Hi I have been set some homework by my maths teacher- how many six digit numbers are there that don't contain a 5. I thought i would do this in code. I have plan of the program but i don't know how to write it. I have some knowledge of python I am doing it in code as i think it will be the quickest ...
by Hacker'n'Tinker guy
Sun Feb 22, 2015 11:31 am
Forum: Networking and servers
Topic: SSH not working Offending rsa key and remote host has change
Replies: 8
Views: 3088

Re: SSH not working Offending rsa key and remote host has ch

I just typed in /Users/daniel/.ssh/known_hosts into terminal.
but it denied access i am not the administrator. Do i need need adminastror status to access the file?
Daniel
by Hacker'n'Tinker guy
Sun Feb 22, 2015 10:43 am
Forum: Networking and servers
Topic: SSH not working Offending rsa key and remote host has change
Replies: 8
Views: 3088

Re: SSH not working Offending rsa key and remote host has ch

I just typed into the raspberry pi logged in as pi sudo nano /Users/daniel/.ssh/known_hosts and it can up with the error bash command not found. What am i doing wrong
Daniel
by Hacker'n'Tinker guy
Sun Feb 22, 2015 10:11 am
Forum: Networking and servers
Topic: SSH not working Offending rsa key and remote host has change
Replies: 8
Views: 3088

Re: SSH not working Offending rsa key and remote host has ch

So to clarify so do i now log on to the rpi the machine i connecting to then type
sudo nano /Users/daniel/.ssh/known_hosts
then i delete the file
Daniel
by Hacker'n'Tinker guy
Sun Feb 22, 2015 10:06 am
Forum: Networking and servers
Topic: SSH not working Offending rsa key and remote host has change
Replies: 8
Views: 3088

SSH not working Offending rsa key and remote host has change

I want to connect to my b with ssh on the same network using a mac and terminal application. So i type ssh pi@192.168.0.36 having already checked the ip address with ifconfig. This used to work but now i get the error @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST...

Go to advanced search