[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 464 KB, 1416x1424, wantTHIS.jpg [View same] [iqdb] [saucenao] [google]
1397199 No.1397199 [Reply] [Original]

tread N01 >>1354290

>> No.1397203
File: 83 KB, 694x883, COMP_5_USD.png [View same] [iqdb] [saucenao] [google]
1397203

https://www.youtube.com/watch?v=vGROCUriiHM

>> No.1397218

>>1397199
FYI, threads start falling off the board when they reach 311 posts or 151 images. That one has 45 posts left.

>> No.1397226

>>1397218
to many posts was deleted

>> No.1397229 [DELETED] 

fuck off you worthless retard

>> No.1397236

>>1397226
And, whose fault was that?

>> No.1397248
File: 104 KB, 575x889, cuck5.jpg [View same] [iqdb] [saucenao] [google]
1397248

>>/diy/?task=search2&ghost=&search_text=&search_subject=HERE+IS+ALL-IN-COMPUTER+FOR+5%24

what are you trying to achieve you worthless retarded piece of shit?

>> No.1397256

>>1397248
Just report it and move along.

>> No.1397309
File: 2.30 MB, 1235x5269, All in one shill.jpg [View same] [iqdb] [saucenao] [google]
1397309

>>1397248
reminder:

>> No.1397377

>>1397199
Today I started to build a esp8266 based project using a current switch from Amazon to log the status of mains power and sump pump usage, while providing a text for various events and logging to an SD card. The system also provides a graph of the events on demand via a browser.

So far I've been able to log the events, make it txt, sync to ntp, have a config file on the SD card, make a web/socket server, with a bit of json.

Can anyone suggest what the best way of encoding the data on the SD card so that when the browser requests a large sample size it doesn't have to send megs of data? I assume a phone browser may take 20 seconds to let JavaScript convert it to a graph via the socket server. I was considering rle encoding but that wouldn't work out with timestamps. I'm not interested in msqt.

Any suggestions?

>> No.1397401

>>1397199
Can you watch blacked.com?

>> No.1397591

>>1397377
use IOT botnet

>> No.1397723

>>1397591
Never mind I'll just do it myself. Noone said diy was useful anyways.

>> No.1397809

>>1397199
reported again
>>1397036
>>1397092

>> No.1397860

here is IOT for Android:
https://play.google.com/store/apps/developer?id=Samsung+ARTIK+Cloud
can easy monititor and control devises connected to internet
but it botnet

>> No.1398022

>>1397377

>So far I've been able to log the events, make it txt, sync to ntp, have a config file on the SD card, make a web/socket server, with a bit of json.

You can do all that and you can't come up with a scheme to format simple data? Maybe I misunderstood you, but it should be easy in any number of ways. I save 7 days of data that consists of a number of events and the time they occur. You can easily put one event per bit if it's an on/off event, so one byte can handle 8 events. then another byte or set of bytes can be minutes since midnight, or seconds, or whatever resolution you need. Another byte or two can be the day of the year or whatever other tags you need.

When you want to fetch data you request a particular time block, like "today", or "last three hours", or whatever makes sense.

Like I said, I must have misunderstood your question if you can do all that other crap and can't handle simple data.

>> No.1398183

>>1398022
Oh I've got a few schemes in mind but I'm asking for advice for the fastest, efficient way.

Here's what I'm thinking:

The device will record the high high level of the sump (a secondary float switch hooked up to a 12 v horn), the current switch on the motor and finally mains power status for 3 digital values. I'm also including when wifi is reconnected, initial boot and an error bit. All of these bits can be packed into an 8 bit int. Everything is timestamped with an epoch timestamp which is 64 bits if I recall. That being said I figured a log entry of all signals occurs only on a state change, because I'm not expecting rapid changes. I'm also filtering the inputs to 1/2 second. In case of an intermittent connection.

This can lead to raw socket data that can be parsed by JavaScript (jgraph? Graphio? There's many libraries), it then creates arrays of the data and graphs it. The requests can be by time range of course (minutes, hours, days, months, years) based on min/max time values kept track by the esp.

But is this the most efficient? Shit like this has been done already but benchmarks are not easy to find. This is why I went on a whim and asked diy. It was to save time so I didn't have try all this out. Just figuring out the wifi timers, sd, ntp, station/ap calls and webserver so that it doesn't crash, catches events via interrupt doesn't do weird shit was daunting enough as it was. I killed a whole night learning that the timer interrupt tick cannot be less than 250ms..or it gets angry and autistic. I was using this to blink the led so I could see state changes in wifi, DNS, ntp, check the mail server etc.

If theres no answer I'll try it this way and/or just json encoding all the data and benchmarking it myself.

>> No.1398187

>>1398183
>But is this the most efficient? Shit like this has been done already but benchmarks are not easy to find.

Ahh, you're in compSci mode here. I'd ask /g/ and hope one of the actual programmers who is familiar with this happens to see your question. Failing that, I'd try *cough* reddit programming subreddits, but the best place for expert programming advice in my opinion is stackoverflow.

>> No.1398188

>>1398187
More of a system integration mode. I only have so much time slice on this loop and overwhelming the CPU always leads to autism. Compsci can't handle anything without a mouse nor do they do this shit. It's more EE stuff until. It hits the ether.

/g is less than useful. They just say install Gentoo.

I hate reddit and they gayness although there might be hope. Stack overflow maybe but it's slower than diy most times.

Just seems easier to just try it, bench it and implement. If I get to it this week I'll post results. I appreciate the quick response.

>> No.1398495

bump

>> No.1398803 [DELETED] 

bump

>> No.1398988

bump

>> No.1399576 [DELETED] 

bump

>> No.1399852

>>1398495
>>1398988
>>1399576
These are 3 different IPs, how hard are you tryin m8.

>> No.1399916 [DELETED] 

>>1399852
bump

>> No.1399947 [DELETED] 

>>1399916
fuck off you worthless retard

>> No.1400124

>>1399852

>> No.1400525

bump

>> No.1400543

So, where is it?

>> No.1400617

>>1400543
do read tread #1

>> No.1401013

>>1397377
>json
Throw that out and go binary

>> No.1401223

>>1401013
Sure but how do you get html5 to graph it?

>> No.1401233

>>1401223
websockets works with binary
https://blog.mgechev.com/2015/02/06/parsing-binary-protocol-data-javascript-typedarrays-blobs/
look up these topics: js arraybuffer, js dataview, endianness
then get gud.

>> No.1401250

>>1401233
Many thanks anon this should kill alot of esp overhead.

Can you reccomend a good js graphing library or are they all the same? Looks like I would have to unpack the binary data browser side.

>> No.1401257

>>1401250
I can't recommend one over the other, they're all pretty much the same. Just demo a bunch and find one that performs the way you like with your datasets.
I rolled my own for highly specific purposes like business analytics.
>Looks like I would have to unpack the binary data browser side.
correct, there's no getting around that. don't think of it as unpacking, rather, think of it as having your computer read data that's already its native binary format without any wasteful soÿ encoding/decoding stages.
json has its place, i use it all the time at work, but when i need performance i use application-specific binary data.

>> No.1401342

>>1401257
Finally a voice of reason. Many thanks anon, I will post results when I can get to this.

>> No.1401430

>>1401223
use IOT
https://play.google.com/store/apps/developer?id=Samsung+ARTIK+Cloud

>> No.1401459

Just got my first Pi today with the 3.5 touchscreen. Going to dick around and make some general display/informational apps. Is the best route to just make it as HTML/PHP and run in kiosk mode via the browser?

Anyone have cool and >useful pi projects for home?

>> No.1401595

>>1401459
>Pi
for rich and stuped people

>> No.1402119

bump

>> No.1402129

>>1401595
chang mad people aren't buying his $5 computer

>> No.1402154

>>1402129
UNFORTENLY DONT ANY chang PRODUCE IT YET

>> No.1403962

bump

>> No.1404485

1st tread have loot of youtube videos

>> No.1404783

Bump

>> No.1405049

>>1397199
>pins pins pins pins

>> No.1405382

bump

>> No.1405689

Do google esp8266 for youtube videos

>> No.1406327

Bump

>> No.1407080

https://www.youtube.com/watch?v=vGROCUriiHM

>> No.1407376

https://www.youtube.com/watch?v=dYLgCs4odBg

>> No.1407831

https://www.youtube.com/watch?v=gsCXKYdxzLk

>> No.1407836
File: 19 KB, 544x480, 1500689897651.png [View same] [iqdb] [saucenao] [google]
1407836

>>1397199
tread N01: https://yuki.la/diy/1354290

>> No.1408287

https://www.youtube.com/watch?v=ZHy-K7VV0bA
https://www.youtube.com/watch?v=dMafNyiUd6Y

>> No.1409055

https://www.youtube.com/watch?v=6NsBN42B80Q

>> No.1409198

https://www.youtube.com/watch?v=-JXuwwXQh8c

>> No.1409447

bump

>> No.1410145

bump

>> No.1410547

bump

>> No.1412237

bump

>> No.1412282

https://www.youtube.com/watch?v=1kQ79ytZKJA
ok, we have it, buy $35 to mach

>> No.1412879
File: 153 KB, 1000x1000, ESP8266OLED.jpg [View same] [iqdb] [saucenao] [google]
1412879

here
<---
is $5 all-in-one computer what (You) realy can buy now

>> No.1413446

bump

>> No.1413738

bump

>> No.1414052

bump

>> No.1414443

>>1412879
>>1412282

>> No.1414734
File: 46 KB, 600x337, _____.jpg [View same] [iqdb] [saucenao] [google]
1414734

bump!

>> No.1414916
File: 49 KB, 500x500, _____.jpg [View same] [iqdb] [saucenao] [google]
1414916

$35

>> No.1415638

bump

>> No.1416486

bump

>> No.1417272

https://www.youtube.com/watch?v=UC5TS1INeNY

>> No.1417535 [DELETED] 

bump

>> No.1418974

bump

>> No.1420304

bump

>> No.1421631

https://www.youtube.com/watch?v=w2ibvgTD18c

>> No.1421641

This is one dedicated pajeet.

>> No.1423475 [DELETED] 

bump

>> No.1425191

bump

>> No.1425477

I can't even figure out what this thread is supposed to be about. A single board computer?? But not raspberry pi?

>> No.1426072

>>1425477
It's just an ESP8266 MCU board that comes with a screen but barely anyone (read: nobody) sells anymore. Last thread someone decided to design a PCB with a keyboard on it and we got OP's abomination. This doesn't need to be a general, impolite sage.

>> No.1426326
File: 10 KB, 154x239, IMG_20180715_224534.jpg [View same] [iqdb] [saucenao] [google]
1426326

>>1397199

Fuck You, OP, and everyone you care for !

I saw this thursday, and ordered Odroid-go on-the-spot, got it today.

And now I need to find someone and/or something to fuck my TPE-doll GF-BAE for I have no morew time to.

Yeah, flashed firmware, got arduino IDE, blinked led and got even more crazy than I thought is possible.

Fuck You, Fuck You sideways !

>> No.1426537

>>1426326
Then don't bump, fuckwad.

>> No.1426562

works like absolute shit
no thx

>> No.1426709

>>1414734
>>1414916
I gotta make or buy one of these. Very cute.

>> No.1426940

bump

>> No.1428803

Bunp
V interdasting

>> No.1429084

>>1428803
kys

>> No.1429246 [DELETED] 

bump

>> No.1430771

sorry for bump

>> No.1432032

>>1428803

>> No.1432972

>>1428803

>> No.1434998

bump

>> No.1435998

https://www.youtube.com/watch?v=qaMxh0CFXDE

>> No.1437171

https://www.youtube.com/watch?v=vwUGPjQ_5t4

>> No.1437999
File: 187 KB, 1000x1000, ESP_BOY.jpg [View same] [iqdb] [saucenao] [google]
1437999

https://www.aliexpress.com/store/product/WiFi-Deauther-ESP8266-preflashed-development-board/2996024_32814740638.html

>> No.1438733 [DELETED] 

bump

>> No.1439016

>>1426326
Odroid go far better than OP's deauther shit, odroid got best docs.

>> No.1439537

>>1439016
yes

>> No.1442762 [DELETED] 

Bump

>> No.1445196

>>1397199
reddit

>> No.1445658

https://www.youtube.com/watch?v=pYLVgxJ-uGU

>> No.1446353

>>1445658
DOOM!

>> No.1447533

https://www.youtube.com/watch?v=Or29Ac0jb3w

>> No.1447721

>>1397199
>not attiny85
dropped

>> No.1447917

>>1447721
>>1447721
>attiny85

to low memory
no wifi

>> No.1448171

>>1447917
>using wifi instead of rf
kys

>> No.1448617

>>1448171
shitup, arduino-tard

>> No.1450471

bump

>> No.1451775

https://www.youtube.com/watch?v=kSe6BYtCUmc

>> No.1453513

bump

>> No.1454906

https://www.youtube.com/watch?v=5HRjc83aUY8

>> No.1456106

bump

>> No.1456581

nothing new

>> No.1457893

ok, now wee have it:
https://github.com/esp8266/Basic
with PS/2 keyboard suport

>> No.1460184

now i awnt sega megadrive with keyboard and mouse port
and software on SD card, not only games but also developvtyn system

>> No.1460190

https://www.youtube.com/watch?v=YqouZCVMMwg
http://www.symbos.de/apps.htm?4