Go to advanced search

by afedriansyah
Fri Nov 02, 2018 4:22 am
Forum: Beginners
Topic: waiting time is recorded and can be seen in the terminal but it doesn't appear in the database
Replies: 1
Views: 94

waiting time is recorded and can be seen in the terminal but it doesn't appear in the database

Hi I have a problem here. In my raspberry pi I have a start button, lap button that records the time and waiting button that records the waiting time. The principle of the waiting time is similar to the lap button, but, the waiting button is interrupted when a person presses the start button. During...
by afedriansyah
Wed Mar 21, 2018 1:43 am
Forum: Troubleshooting
Topic: apt-get install php7.0-intl fails on Raspbian Stretch
Replies: 8
Views: 5445

Re: apt-get install php7.0-intl fails on Raspbian Stretch

Hi I have a question, I am currently using 4 Raspberry Pi's for my project. I have installed phpmyadmin which includes php7.0 in the three of them and have no problems during php7.0 installation. Right now I have a problem with my 4th Raspberry Pi. Somehow, i couldn't install php7.0 with this comman...
by afedriansyah
Mon Mar 19, 2018 1:40 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

Thank you very, very very much for your help Mr. Lawson, it works now :D .
by afedriansyah
Thu Mar 15, 2018 2:48 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

Hi I am pretty sure I already fixed about the indentation that you told me just now and here I'm gonna re-post my python code: from Tkinter import * from pymodbus.client.sync import ModbusTcpClient as ModbusClient import time import datetime import RPi.GPIO as GPIO import MySQLdb GPIO.setmode(GPIO.B...
by afedriansyah
Thu Mar 15, 2018 1:39 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

Hi Mr. Lawson

Thank you for the reply and i haven't told you that i am new with raspberry pi and i am not a python expert. And I wanna ask about what you mean about fixing indentation struggle of my python code. Because I don't really understand about it.
Thank you
by afedriansyah
Wed Mar 14, 2018 1:31 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

I just edited my post now the all the codes should be clear.
But i really still need help with my post above.
Thank you for your time
by afedriansyah
Tue Mar 13, 2018 1:41 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

I tried it yesterday and it didn't work either. I've tried several things and the results were the same. I think i should change around this code: def insert_to_db(self): self.sql = "INSERT INTO TAB_ASSY ('Finished_Product', 'Time') VALUES (%s, %s)" try: self.execute(sql,( str(self.lbttn_clicks), st...
by afedriansyah
Mon Mar 12, 2018 2:39 am
Forum: General discussion
Topic: MySQL database
Replies: 30
Views: 5970

Re: MySQL database

Hi R-pi I have created a touch screen buttons consist of "start" "Request material" "Receive material" "Lap" "Emergency" "Finish" Now i am trying to store integers (as finish products) and lap times when an operator presses the lap button. the result shows in the terminal after i ran the program, bu...
by afedriansyah
Mon Mar 05, 2018 3:52 am
Forum: Automation, sensing and robotics
Topic: SCADA/HMI
Replies: 14
Views: 52460

Re: SCADA/HMI

Hi R-pi

does anyone still use HMI droid on PC ?
I have a problem with rr register and it wont display in the HMI droid
can anyone share one or two examples of rr registers by executing in the raspberry and displaying on HMI droid
please share
I am using raspbian by the way
Thank you
by afedriansyah
Thu Mar 01, 2018 7:03 am
Forum: Beginners
Topic: phpMyAdmin
Replies: 19
Views: 21858

Re: phpMyAdmin

Hi R-pi community I have a complicated situation here and it involves phpmyadmin. I am designing Andon lights in my lab and I want to record the time and store the recorded time immediately when a person presses the lap button. Furthermore, when a person presses the green light, it would appear in t...
by afedriansyah
Thu Mar 01, 2018 2:41 am
Forum: Beginners
Topic: phpMyAdmin
Replies: 19
Views: 21858

Re: phpMyAdmin

Thanks for the answer. I'll try it now
by afedriansyah
Wed Feb 28, 2018 3:18 am
Forum: Python
Topic: need help connecting to mysql
Replies: 4
Views: 1627

Re: need help connecting to mysql

Hi I have some python code here #!/usr/bin/env python2.7 import os import time import datetime import MySQLdb global c global db def getCPUtemperature(): t_cpu = os.popen('vcgencmd measure_temp').readline() t_cpu = t_cpu.replace("temp=","").replace("'C\n","") return(t_cpu) def insert_to_db(): temper...
by afedriansyah
Tue Feb 27, 2018 3:32 am
Forum: General discussion
Topic: Python GSpread Installation
Replies: 2
Views: 1367

Re: Python GSpread Installation

Hi I am using raspberry with raspbian stretch os and I've been trying to install gspread into it. I typed "pip install gspread" and this message appears " Could not find version that satisfies the requirement gspread (From version :) No matching distribution found on gspread". How do I solve this pr...
by afedriansyah
Tue Feb 27, 2018 3:05 am
Forum: Python
Topic: gspread module problem
Replies: 4
Views: 2040

Re: gspread module problem

Hi i've been trying to do this command "pip install oauth2client" but this message appears "Could not find a version that satisfies the requirement oauth2client (from version ) No matching distribution found for oauth2client. Another question is : is it truly important to install oauth2client into m...
by afedriansyah
Tue Feb 27, 2018 1:24 am
Forum: Beginners
Topic: phpMyAdmin
Replies: 19
Views: 21858

Re: phpMyAdmin

i guess its a little bit late for that. Now i have different problems. I have tried to reinstall phpmyadmin and mysql server but error 1045 and so on appear during phpmyadmin installation & uninstallation. Furthermore, there's a problem with apache2 php5 libapache2-mod-php5 during reinstallingg mysq...
by afedriansyah
Mon Feb 26, 2018 8:40 am
Forum: Beginners
Topic: phpMyAdmin
Replies: 19
Views: 21858

Re: phpMyAdmin

I just followed the instruction based on the link you gave me earlier and suddenly the ip address for phpmyadmin became forbidden
how do i solve this now ?
thank you
by afedriansyah
Mon Feb 26, 2018 8:12 am
Forum: Beginners
Topic: phpMyAdmin
Replies: 19
Views: 21858

Re: phpMyAdmin

Hi
I've been trying to log in into phpmyadmin with root but couldn't log in and this message appears "1698 - Access denied for user 'root'@'localhost'
can somebody help me by changing configuration on the username and password ? I am running raspbian stretch
thank you
by afedriansyah
Mon Feb 26, 2018 6:36 am
Forum: Python
Topic: gspread module problem
Replies: 4
Views: 2040

Re: gspread module problem

Hi I've been trying to install gpsread oauth2client module on raspberry pi 3 but this message appears. I'm using raspbian stretch. "could not find version that satisfies the requirement oauth2client ( from version: ) no matching distribution found for oauth2client" I really neeed help with this than...

Go to advanced search