Author Topic: Something silly I'm working on!  (Read 2420 times)

madcat1990

  • Guest
Something silly I'm working on!
« on: March 05, 2010, 12:34:36 am »
Ok, I wanted to use dingoo to show some info of my pc!
like CPU load and stuff...

So I started learning SDL and SDL_net and prep'd my ubuntu rig for programming!

All this is, is a simple SDL_Net "demo", with ugly coding, still have lots of work to do.
What does it show? Like I said, it shows how much space left on your main partition "/" and the cpu load.

requires you, also to have it connected through USB to the pc (obviously) and that you run a client app on your pc, sending the data to the dingoo

To start it, just open a terminal, go to the folder its in and type:
./client 10.1.0.2 2000

You will notice that it is upside down, I did that on purpose so that the USB wire would not be damaged by putting the dingoo on its normal stance :P

ok, now to the dingoo part, add this "main.dge" file to your "window manager" and open it, it will then await for the client's connection :D, also, be sure to put the font on the same folder as the main.dge!

enjoy, and feedback is welcome!

DOWNLOAD IT HERE

madcat1990

  • Guest
Re: Something silly I'm working on!
« Reply #1 on: March 06, 2010, 03:54:32 am »
After working a bit on it, added some stuff to it.

now tells time xD, font is bigger, has some famfamicons, blablabla

and the client executable, no longer needs parameters, just "./client" he gets the IP automatically and port!

Enjoy:

DOWNLOAD HERE

Photo 1 AND Photo 2
« Last Edit: March 06, 2010, 04:01:36 am by madcat1990 »

zear

  • * Moderator
  • Posts: 2379
Re: Something silly I'm working on!
« Reply #2 on: March 06, 2010, 10:39:53 am »
So.. I tested that little program.
Had to launch it ~5 times to finally set up a connection (before either the main.dge was crashing, or client couldn't connect).
When it launched at first the screen was all messed up (all the text was printed into one line), but after a couple of seconds it stabilized. I pressed the key up and it crashed though :)
And btw, since it requires a usb connection, why not log on telnet and check memory usage with top, or free space with df? :)

madcat1990

  • Guest
Re: Something silly I'm working on!
« Reply #3 on: March 06, 2010, 03:28:07 pm »
you mean telnet connection to the main pc?

and yeah, it has some things I need to iron out XD

that is my first attempt on SDL, ever.

Btw, it does use df, also uptime for cpu load and date for the time xD

only thing is, its all processed later =D

thanks for testing this thing out though, did you find it useful? Any suggestions?

madcat1990

  • Guest
Re: Something silly I'm working on!
« Reply #4 on: March 07, 2010, 06:08:49 am »
ok, so I altered the visual a "bit"
made it more stable (the dingoo receives a packet before the data one to know what data he's receiving)
also made some intervals before sending packets of data, aparently, sending too many at a time isn't dingoo friendly.

Anyways, here's the new client and main.dge + data:

DOWNLOAD IT HERE

RodrigoCard

  • *
  • Posts: 314
    • Mac Joystick Apps
Re: Something silly I'm working on!
« Reply #5 on: April 04, 2010, 05:48:30 am »
can you show the sources?  :)

Bouvrie

  • *
  • Posts: 124
Re: Something silly I'm working on!
« Reply #6 on: April 04, 2010, 03:37:30 pm »
This is sweet, I was hoping the Dingoo would be useful in displaying contents/feeds from a PC! This is a nice first step! :D

Could the application be fed from a php script or the likes, so an easily adjustable client would generating a picture file at set intervals & then sending the data to the Dingoo? That'd rock. :D
Write/save problems? Segmentation faults? Black screens? Read the Troubleshooting and FAQ guide first to fix your issues! :)
SD Card readonly/corruption issues? Chkdisk /F and steer clear from DMenu: use GMenu instead!

 

Post a new topic
Post a new topic