Go to advanced search

by Parth1234
Mon Feb 18, 2019 3:12 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Sun Jan 20, 2019 3:29 pm
try this... saves 2 files called message1.txt and message2.txt, which are loaded at the start
Hello gordon77

I am planning to save the count of each day..

Code: Select all

import datetime;
ts = datetime.datetime.now().timestamp()
print(ts) 


How to save the count of each day. ?
by Parth1234
Wed Jan 30, 2019 12:23 pm
Forum: Python
Topic: need help to compare string
Replies: 2
Views: 165

need help to compare string

I need help to compare string Let's say I am getting string continousely from input input message may be following string = ";Day1=13/10/18;Day2=14= Shift;Time11=15:17;PRICE=10" strong = ";Day1=13/10/18;Day2=14=A;Time11=15:17;PRICE=10" #no change in strig string = ";Day1=14/10/18;Day2=14=A;Time11=15...
by Parth1234
Mon Jan 21, 2019 4:16 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

try this, hopefully count1 and count2 now fully configurable by the user. Thank you very, Nice work gordon77, I was searching on the internet to check internet status in gui Do you have any knowledge about it, Is it possible to get internet status weather it's connected or disconnected in gui ?
by Parth1234
Sun Jan 20, 2019 12:14 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

try this latest version, it will allow you to save a message for count1 and count2, and see them later. I wanted to store four string message, two for first project and other two for second message if user enter any message it should be store in string variable first save button save GPIO configura...
by Parth1234
Sun Jan 20, 2019 11:39 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

Works for me , what did you type ? because the script doesn't allow you to choose the current Count1 /2 you won't be able to see the message ! Maybe get resolved in future. I thought we can submit string message under counter 1 I am planning to submit three text message under project1 and project2 ...
by Parth1234
Sun Jan 20, 2019 11:15 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Sun Jan 20, 2019 10:43 am
To change Count1 to GPIO 4..


Remember to move the wired input to GPIO4 !
thanks gordon77, Understood

why message I typed in the entry box doesn't store ?

How to submit text message under counter 1 and counter 2
by Parth1234
Sun Jan 20, 2019 10:38 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

Checks OK here. What H/L do you have set on Count1 GPIO ? The original needed None. I have modified the gpio_config.txt above. Hi gordon77 Only GPIO 12 and GPIO 16 are working If I set GPIO 4 input none any of them counter doesn't work suppose first i used GPIO 12 for counter 1 and later I want to ...
by Parth1234
Sun Jan 20, 2019 9:23 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Sat Jan 19, 2019 5:19 pm
Click on IO#- or IO#+ to choose a GPIO pin
Then you can set GPIO to Input/Output/Count1/Count2 by clicking on I/O
and you can set High/Low or None by clicking on H/L

then press save.
Have you checked , counter 1 is not working ?

I have Pi3 model B
by Parth1234
Sat Jan 19, 2019 4:59 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

Please try the latest version l have posted above, it's fixed various issues. I have tried it There are few things, User can not set the output pin in GUI because you are making it input by default I was thinking to make GUI, where user can set pin numbering, input/ output pin and High/Low in GUI
by Parth1234
Sat Jan 19, 2019 12:22 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

This allows them to set the 2 counter pins, and allows you to block other pins if required... I have done few changes in script #!/usr/bin/python import tkinter as tk from urllib.request import urlopen import json import socket from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) g...
by Parth1234
Thu Jan 17, 2019 6:15 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

A few thoughts... If you want to list all available gpios then that is a long list. I think It would be better if we can allow user to set three things pin numbering input/output High/Low and save pin settings so user can change anything anytime Is it possible to do it in our script ? p3.jpg
by Parth1234
Thu Jan 17, 2019 5:43 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 5:28 pm
Will it just display the settings, not allow the user to set them?
Allow user to set pin number

I think you understood what I want to do

If do you have any suggestion, please share

How would you like to make an application for user ?
by Parth1234
Thu Jan 17, 2019 4:12 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

This allows them to set the 2 counter pins, and allows you to block other pins if required... excellent help with code gordon77 i haven't tried script on my pi yet. I will try at home. I don't want to be more demanding because you have already helped me a lot with code found this link https://www.r...
by Parth1234
Thu Jan 17, 2019 2:40 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 1:06 pm
what choices of configuration are you looking for, just GPIO # Number ?
I would like to set GPIO pin Numbering
like this
p3.jpg
p3.jpg (41.85 KiB) Viewed 462 times
I thought It would be good for user who doesn't have technical knowledge.
by Parth1234
Thu Jan 17, 2019 12:45 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 11:30 am
Can you explain "I am trying to make GUI for pin configuration after IOT project labels " more ?
I was asking how to make GUI to set GPIO configuration
by Parth1234
Thu Jan 17, 2019 11:25 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

Project 1 is now a counter, counting gpio #12. Clear will reset to 0 @ gordon77 thank you I have made second script I am trying to make GUI for pin configueation after IOT project lables It would be good, User can set i/o pin #!/usr/bin/python import tkinter as tk from urllib.request import urlopen...
by Parth1234
Wed Jan 16, 2019 2:22 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

here's a start, you'll need to determine how to run your projects rather than just print It's good starting point thanks insted of print statement how to run below sample script import tkinter as tk from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) Counter_PIN = 12 GPIO.setup(Co...
by Parth1234
Wed Jan 16, 2019 10:44 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

Thanks scotty101 for your every help, I am not very good in english so language problem What do you mean by disabling/enabling projects? Does enabling a project run the python script in a subprocess that can then be killed when the project is disabled? yes exactly Does the python script run all the ...
by Parth1234
Tue Jan 15, 2019 10:37 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

What do you mean by disabling/enabling projects? Does enabling a project run the python script in a subprocess that can then be killed when the project is disabled? Does the python script run all the time but only do something when it has been enabled? Are the python scripts included in your main p...
by Parth1234
Tue Jan 15, 2019 9:58 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

I just want to give an option to user. if he want to use fire alarm then he should be able to disable water level indicator project. if he want to use water level indicator then he should be able to enable water level indicator project project.png import tkinter as tk class MainApplication(tk.Frame)...
by Parth1234
Tue Jan 15, 2019 5:03 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

W. H. Heydt wrote:
Mon Jan 14, 2019 2:30 pm
Linux is a multi-user, multi-tasking operating system. so, yes, a Pi can run multiple programs concurrently.
if you look at my code I have created main page

I need help to make two other windows
by Parth1234
Mon Jan 14, 2019 11:49 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

Re: GUI to Run two programs

I don't understand what you are asking for. Do you want a single application to have a main page with two other windows that can be opened from it? yes let's say I have five projects 1. Fire alarms 2. water level indicator 3. Air flow detection 4. Mobile incoming call indicator 5. temperature monit...
by Parth1234
Mon Jan 14, 2019 10:54 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 1861

GUI to Run two programs

I want to implement my idea in real time project. I have made GUI Untitled.jpg suppose I have made two project's 1. Fire alarm 2. Water level indicator I want to anyone or both should be run in the setting #!/usr/bin/python import tkinter as tk from urllib.request import urlopen import json import s...
by Parth1234
Sun Jan 13, 2019 9:40 am
Forum: Python
Topic: GPIO Pin Configuration
Replies: 1
Views: 369

GPIO Pin Configuration

I want to configure GPIO Pin of Pi in GUI. I have found this way to do it import tkinter #creates box window =tkinter.Tk() window.geometry("%dx%d+%d+%d" % (330, 80, 200, 150)) window.title("Raspberry Pi") #data data={ 'GPIO12':"LED Pin", 'GPIO16':"Buzzer Pin", 'GPIO14':"Switch Pin", } #updates text ...
by Parth1234
Mon Dec 31, 2018 4:51 pm
Forum: Python
Topic: How to send command to PC from Raspberry Pi GUI
Replies: 8
Views: 409

Re: How to send command to PC from Raspberry Pi GUI

The subprocess module is a bit tricky to use. What works for me is: import subprocess server_ip = "192.168.2.111" rep = subprocess.Popen('ping -c 1 ' + server_ip , shell=True, stdout= subprocess.PIPE, stderr= subprocess.PIPE) (stdoutdata, stderrdata) = rep.communicate() print(server_ip, rep.returnc...

Go to advanced search