Adminer - How to copy to and where in measureit

102 views
Skip to first unread message

ma...@rmtucker.f2s.com

unread,
Jan 10, 2015, 12:21:02 PM1/10/15
to meas...@googlegroups.com
According to the wiki it should already be there but it seems it is missing from the prepared image?

Steve

unread,
Jan 10, 2015, 11:54:35 PM1/10/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
I have phpMyAdmin on my RPi, but just tried Adminer.


Then I just copied it to my public_html directory (when I set my RPi up is is /www for my machine), entered my local IP address for the MeasureIt RPi with the adminer file name added and it loaded up. (I use my RPi to host my weather station too, so it's not a standard measureit installation from the image).

For mine it's as simple as http://192.168.0.100/adminer-4.1.0.php

If you're using a measureit image, then on your installation you might (probably) have to copy it to public_html/measureit (/web/measureit/) then http://<your-measureit-ip>/adminer-4.1.0.php

Adminer website says you can export data as SQL or CSV, but I don't immediately see how it's done with Adminer.

Steve.

Mark Tucker

unread,
Jan 11, 2015, 5:32:06 AM1/11/15
to Steve, meas...@googlegroups.com
Steve
I get the following error:-

Command:    put "/home/rmtucker/Downloads/adminer-4.1.0.php" "adminer-4.1.0.php"
Error:    /web/measureit/adminer-4.1.0.php: open for write: permission denied
Error:    File transfer failed

Regards
Mark

Thomas

unread,
Jan 11, 2015, 8:14:19 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
You are right. The image online is not the latest version. I add some update informations to the wiki.

Please tell me if this information is clear enough.

https://github.com/lalelunet/measureit/wiki/Help---FAQ#how-do-i-update-my-measureit-installation



Steve

unread,
Jan 11, 2015, 8:16:23 AM1/11/15
to meas...@googlegroups.com, wot...@gmail.com, ma...@rmtucker.f2s.com
Mark, it might be a user permission problem.

I take the easy (less secure) route when working with my Pi. I use WinSCP and Putty on my Windows machine, log in as root and can do whatever I like on the Pi. Copying adminer.php for me was just a matter of dragging and dropping.

Steve.

Steve

unread,
Jan 11, 2015, 9:04:04 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
Hi Thomas,

My installation isn't from the image. Is it simple enough for me to change it be able to use git pull?

Steve.

ma...@rmtucker.f2s.com

unread,
Jan 11, 2015, 9:41:24 AM1/11/15
to meas...@googlegroups.com, wot...@gmail.com, ma...@rmtucker.f2s.com
Steve

What is the root password on the image version,Any idea?

Regards
Mark

Steve

unread,
Jan 11, 2015, 9:52:57 AM1/11/15
to meas...@googlegroups.com, wot...@gmail.com, ma...@rmtucker.f2s.com
Mark,

There might not be a root user in the image.

You can create one or try adding sudo in front of any command you issue.

If you don't want to have to add sudo in front of commands and want to log in a root try:

sudo passwd root

enter a password and log in as root.

(I think that's it)

Steve.

ma...@rmtucker.f2s.com

unread,
Jan 11, 2015, 9:56:15 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
Thomas

Type su - web
Asks for a password which is not raspberry

Regards
Mark

Thomas

unread,
Jan 11, 2015, 9:56:27 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
Hi Steve,

this is not a problem :)

I assume your measureit installation is in /web/measureit

So stop the grabber. Change to /web and move the old one: mv measureit measureit_old

Change to user web:  su - web

Create measureit directory: mkdir measureit

Then you can checkout measureit from git

git clone git://github.com/lalelunet/measureit.git

now you should have all measureit files in the directory.


Make sure the webserver points to the measureit_public_html directory as root directory. If not change it and restart the webserver

web-root /web/measureit/measureit_public_html

The grabber is now in the /web/measureit/measureit_system_files directory. So if your grabber starts with init.d or is controlled with supervise you had to change the path of the grabber.

If you change f.e. the config file you can create a git ignore file. There is currently no readme online. I had to test this out what happens and document this.

https://help.github.com/articles/ignoring-files/

Thomas

unread,
Jan 11, 2015, 9:59:29 AM1/11/15
to meas...@googlegroups.com, wot...@gmail.com, ma...@rmtucker.f2s.com
There is not root password. A sudo bash is enough. Then you can chage to user web

You do not had to do anything else as doing a git pull. See

https://github.com/lalelunet/measureit/wiki/Help---FAQ#how-do-i-update-my-measureit-installation

Mark Tucker

unread,
Jan 11, 2015, 10:09:35 AM1/11/15
to meas...@googlegroups.com
Thomas

I have managed to get Adminer running but now it wants
Username?
Password?
Database?

Regards
Mark
--
You received this message because you are subscribed to a topic in the Google Groups "measureit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/measureit/XQUUe9G3Imk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to measureit+...@googlegroups.com.
To post to this group, send email to meas...@googlegroups.com.
Visit this group at http://groups.google.com/group/measureit.
To view this discussion on the web visit https://groups.google.com/d/msgid/measureit/89972b37-2d5c-4fd7-8a6a-8e2f634edd78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas

unread,
Jan 11, 2015, 10:13:19 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
The database is measure_it

Passwords should be default values. See
https://github.com/lalelunet/measureit/wiki/Raspberry-Pi


Am Sonntag, 11. Januar 2015 16:09:35 UTC+1 schrieb Mark Tucker:
Thomas

I have managed to get Adminer running but now it wants
Username?
Password?
Database?

Regards
Mark

On 11/01/15 14:59, Thomas wrote:
There is not root password. A sudo bash is enough. Then you can chage to user web

You do not had to do anything else as doing a git pull. See

https://github.com/lalelunet/measureit/wiki/Help---FAQ#how-do-i-update-my-measureit-installation

Am Sonntag, 11. Januar 2015 15:41:24 UTC+1 schrieb ma...@rmtucker.f2s.com:
Steve

What is the root password on the image version,Any idea?

Regards
Mark

--
You received this message because you are subscribed to a topic in the Google Groups "measureit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/measureit/XQUUe9G3Imk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to measureit+unsubscribe@googlegroups.com.

Steve

unread,
Jan 11, 2015, 10:15:10 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
Mark, try:

username: measureit
password: measureit (supposed to change it after installation - especially if the site is visible on the www)
database: measure_it

Steve.

Mark Tucker

unread,
Jan 11, 2015, 10:21:43 AM1/11/15
to meas...@googlegroups.com
Steve

I tried
username measureit
password measureit
database measure_it

Also

username pi
password raspberry
database measure_it

At a loss now

Mark

Thomas

unread,
Jan 11, 2015, 10:51:34 AM1/11/15
to meas...@googlegroups.com, ma...@rmtucker.f2s.com
username root
password raspberry
database measure_it

Mark Tucker

unread,
Jan 11, 2015, 12:26:05 PM1/11/15
to Thomas, meas...@googlegroups.com, wot...@gmail.com
Thomas

If i follow your wiki instructions to update

su - web

It asks for password?


Regards
Mark

On 11/01/15 14:59, Thomas wrote:

Mark Tucker

unread,
Jan 11, 2015, 12:33:58 PM1/11/15
to meas...@googlegroups.com
Thomas

My bad
I have too be logged in as root

Regards
Mark
Reply all
Reply to author
Forward
0 new messages