Green Building Bible, Fourth Edition |
![]() |
These two books are the perfect starting place to help you get to grips with one of the most vitally important aspects of our society - our homes and living environment. PLEASE NOTE: A download link for Volume 1 will be sent to you by email and Volume 2 will be sent to you by post as a book. |
Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.
Posted By: SteamyTeaWinSCP is useful to transfer files, you can write some code on your PC and then just drag the file onto the Linux box. It is just like the old Windows 3.1 File Mangler.
Posted By: SteamyTeaI hadn't, but for my application it is not large enough unfortunately.Remind me again what you are trying to gather? Just temps? What was the distance to mains power?
Posted By: borpinRemind me again what you are trying to gather? Just temps? What was the distance to mains power?I have a wireless signal from the CT clamps, then the receiver is at the nearest 13A socket. Trouble is, it is on farms, and then tend not to have many 13A sockets within about 10m of the transmitter.
E.g., to send a file called “w.js” from my laptop (“bill” as in Bill Hewlett) to my tablet (“edwin” as in Edwin Hudl
curl(1) Curl Manual curl(1)
NAME
curl - transfer a URL
SYNOPSIS
curl [options] [URL...]
DESCRIPTION
curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP,
FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET
and TFTP). The command is designed to work without user interaction.
curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL
connections, cookies, file transfer resume and more. As you will see below, the number of features will make
your head spin!
curl is powered by libcurl for all transfer-related features. See libcurl(3) for details.
edavies@bill:~/temp$ curl -T w.js ftp://edwin:3721/Still, FTP is horribly old-fashioned and insecure (passwords sent un-encrypted and so on). If there's any chance to SSH then take it. rsync would be your friend then, though scp would be fine. There's also SFTP (FTP over SSH) but I've not had cause to use that and would have to research if/how curl supports it.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6162 0 0 100 6162 0 42626 --:--:-- --:--:-- --:--:-- 67714
edavies@bill:~/temp$
Posted By: SteamyTeaWith these file transfer programs is it always the files you want to move followed by your account details and then account location.Generally it's options, in any order including the file to be sent, then the URL at the end.
Posted By: SteamyTeaAnd do I have to type in user, followed by a space before my username, some seem to want it and others not.Unfortunately, that tends to depend on the program.
import smtplib
help(smtplib)
then scroll down to read about SMTP_SSL.#!/usr/bin/python3
import smtplib
from email.mime.text import MIMEText
from datetime import datetime
data = [i for i in range(10)]
frm = 'cowshed@edavies.me.uk'
to = 'ed@edavies.me.uk'
msg = MIMEText('\n'.join(str(x) for x in data))
msg['Subject'] = 'Methane production to %s' % datetime.utcnow().isoformat()
msg['To'] = to
msg['From'] = frm
s = smtplib.SMTP_SSL('domain name of smtp server')
s.login('user name on smtp server', 'password on smtp server')
print(s.send_message(msg, from_addr=frm, to_addrs=to))
s.quit()
Numbers just show that what MIMEText wants is a single string with new line characters between the lines.to = ['ed@edavies.me.uk', 'steamytea@xxx.com']
msg['To'] = ','.join(to)
sends to multiple recipients, it seems. The send_message(to_addrs) parameter naturally takes a list. I hope Steamy got a copy at his actual mail server which is not entirely the same as 'xxx'.