archiveren

Tagarchief: mv

Nieuwere versie: 4.1

 

 

Het had weer een update nodig…

Mensen vroegen om een login systeem te voorzien voor verschillende simkaarten.
En aangezien ik nog steeds denk dat “de klant koning is”, doe ik een poging om dat te programmeren 🙂

Nieuwe versie is hier downloadbaar via dommel .

En binnenkort waarschijnlijk ook via live.com (moet nog goedgekeurd worden…)

Veranderingen:

  • aantal smssen naar andere MV gebruikers onder “toMV”
  • inloggen via telefoonnummer (gebruikersnaam gaat ook)
  • paar updates in parsen van xml

Je opent dus een gadget per telefoonnummer 🙂

Advertenties

I’ve been playing a bit with a nice program called “Rainmeter“. It calls itself a “customizable resource meter“, but actually it’s a lot more 😀 It lets you control your desktop, and do almost anything with it.

Surplus! There are already tons of prefab skins out in the wild, so the most easiest thing you can do is download one of these, install it, and enjoy it’s power ^^

But ofc, we’re going to modify and enhance things a bit :mrgreen:

So it begins…

It started when browsing the tweakers.net “huiskamer” (a place to chat about every random subject :mrgreen: ) I found the show-offtopic about desktops, and saw a post made by EWK. He made a very nice skin with rainmeter based on this one by White-Baron from DA.

So I downloaded them, tested them, and they where indeed pretty nice. But the combination with my pretty colourful sidebar gadgets was a real visual piece of sh*t.

So I needed Rainmeter replacements for them 😎

So I started reverse engineering the existing .ini-files from the EWK skin 🙂
Learned some code using the rainmeter-documentation.

First of all, Rainmeter uses “Measures” and “Meters”. The measure calculates things, fetches information or invents things, and the meters write them to the screen.

For example: a WebParser, to scrape information of the internet. This was used to get information from the MobileVikings-api, and from the dommel.com website 😆

We know the MV-api is hiddden behind the url https://#user#:#password#@mobilevikings.com/api/2.0/basic/sim_balance.xml . So we create a measure to fetch this from the internet 🙂
The RegExp, as described in the url above, takes this information, search for some tags, and puts the information found between those tags (which is (.*) in one big array. So the information between valid_until is stored in the 1st location, the information between data is stored in the 2nd, sms the 3th, and so on…

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=https://#user#:#password#@mobilevikings.com/api/2.0/basic/
sim_balance.xml
RegExp="(?siU)<valid_until>(.*)</valid_until>.*<data>(.*)</data>
.*<sms>(.*)</sms>.*<credits>(.*)</credits>.*<sms_super_on_net>(.*)
</sms_super_on_net>.*<is_expired>(.*)</is_expired>"
StringIndex=1

Next step is to create another measure, which takes information out of this array, and offer it to the meter.

[MeasureSMS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

This simply takes the information located in the 3th place of our array.

And then last step, our meter :mrgreen:

[MeterDesc]
Meter=String
MeasureName=MeasureSMS
Text=You have %1 sms left.
Y=20
W=500
H=40
FontColor=#Colour#, 230
FontSize=15
FontFace=#Font#
StringAlign=Left
AntiAlias=1

Which is pretty straightforward. A name, go fetch a string, our variable from [MeasureSMS], some information about the location and the size of the text put on the desktop, and some fontinformation 😎

And kapow, our first information on the desktop appears

And another thingy that was done: the time was implemented in 0-12 hours instead of going to 23h like we’re used to in Belgium ^^ Just check the url.

In the end it’s just another measure using

Format=%H:%M

for hours and minutes.

Download: MV parser, original skin from EWK . Should be placed in C:\Users\*insert username*\Documents\Rainmeter\Skins . the .ini-file in MV should be edited, using your own password and username 😉 Dommel parser on demand…
And the original from the original: SimpleSentence

Lol, power-noob-fail of mendel, at first I published my code from the MV-parser with my own password in it… In plaintext 😕 OOPS

–edit–
my desktop:
Oh look! My desktop :-) on Twitpic

My wonderfull GSM-provder Mobile Vikings is going public in juli: no need for invite codes anymore :mrgreen:
And that means that my current invite codes are going to expire...
Another thing is that in juli, when MV goes public, the terms are going to change… (Currently it’s 1gb of edge internet, 1000 free sms, and 15€ call credit for 15€/month). And which the terms are going to be is still a mystery 🙄

So, anyway, if you want to become a mobile vikings, and you want to be sure of the current terms (which are realy great!), you should subscribe now 🙂

Which can be done with following invites 🙂

  • VV14IYA
  • 1X7TZXT
  • KTP7MNA
  • 73Y6IN4

Feel free to use them when commenting on this blog-post :mrgreen: