Warning: session_start(): open(/tmp/sess_li4mkca35bb3iiib69ajcbe376, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
SMS Widget openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (1) .- Knowledge Base  . 

SMS Widget

   0.2  

Plasmoid Script

Score 82%
SMS Widget
zoom


Link:  Link
Downloads:  1017
Submitted:  May 7 2009
Updated:  May 20 2009

Description:

SMS Widget is a Plasmoid written in Ruby.
Right now it just supports a few providers, but it is planned to add more online sms services. I'd be glad if any of you added any code for your provider. The more the better.

Installation
Kubuntu (9.04):
sudo aptitude install libkorundum4-ruby1.8 libhttp-access2-ruby1.8
Fedora:
sudo yum install korundum




Changelog:

0.2 - May, 20th 2009
- major code cleanups and UI improvements
- more providers:
--- voipcheap.com
--- coop.ch
--- mbudget.ch
--- swisscom.ch

0.1 - May, 7th 2009:
- initial release.




LicenseGPL
(sms-widget.plasmoid)
Send to a friend
Subscribe
Other  Content  from nethad
Report inappropriate content



goto page: prev   1  2 

-

 arcor.de with ssl

 
 by malfi on: Oct 8 2010
 
Score 50%

Quote:

$ cat ~/.kde/share/apps/plasma/plasmoids/sms-widget/contents/code/providers/arcor_de.rb

require 'net/http'
require 'net/https'
require 'uri'

module Provider

class ArcorDE < AbstractProvider

@sms_sender

@login_name
@password

def initialize(sms_sender)
@sms_sender = sms_sender
@login_name = @sms_sender.get_main.login_name
@password = @sms_sender.get_main.password
end

def send(to, text)
use_ssl = 1

trans =Iconv.new('ISO-8859-1','UTF-8') # new converter-object encoding from UTF-8 to ISO-8859-1
text=URI.escape(trans.iconv(text)) # convert message to ISO-8859-1 and escape it for use in URL

#SmsWidget::Main.logger.debug "login = #{@login_name}\npassword = #{@password}\nto = #{to}\ntext = #{text}\nuse_ssl = #{use_ssl}"

# URLs
referer_url = 'https://www.arcor.de/login/login.jsp'
login_url = 'https://www.arcor.de/login/login.jsp'
send_url = 'https://www.arcor.de/ums/ums_neu_sms.jsp'

# Settings
user_agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
redirect = ''
cookie = ''
if use_ssl
port = 443
else
port = 80
end

# Now do the login
login_uri = URI.parse(login_url)

http = Net::HTTP.new(login_uri.host, port)
http.ca_path = "/etc/ssl/certs"
http.use_ssl = use_ssl
post_data = "user_name=#{@login_name}&password=#{@password}&login=Login&goto=&protocol=https"

post_headers = { 'Referer' => referer_url, 'Cookie' => cookie, 'Content-Type' => 'application/x-www-form-urlencoded'}

resp, data = http.post(login_uri.path, post_data, post_headers)

cookie = resp.response['set-cookie'].split('; ')[0]
SmsWidget::Main.logger.info 'accepted cookie: ' + cookie

#resp.each { |key, val|
# SmsWidget::Main.logger.debug "#{key} => #{val}"
#}


while redirect = resp.response['location'] do
SmsWidget::Main.logger.info 'redirected to: ' + redirect
resp = http.get(redirect, {'Cookie' => cookie})
end
#SmsWidget::Main.logger.debug "arcor de login data: #{resp.body}"

if resp.body.include? 'Der Login ist fehlgeschlagen'
raise InvalidPasswordOrUsernameException
end

#now we can send the message
send_uri = URI.parse(send_url)

http = Net::HTTP.new(send_uri.host, port)
http.use_ssl = use_ssl
post_data = "emailAdressen=#{@login_name}%40arcor.de&useOwnMobile=on&empfaengerAn=#{to}&nachricht=#{text}&gesendetkopiesms=on&senden=Senden&firstVisitOfPage=foo&ordnername=Posteingang&part=0"

post_headers = { 'Referer' => login_url, 'Cookie' => cookie, 'Content-Type' => 'application/x-www-form-urlencoded'}


sent=false

#resp, data = http.post(send_uri.path, post_data, post_headers)
resp = http.post(send_uri.path, post_data, post_headers)

while redirect = resp.response['location'] do
SmsWidget::Main.logger.info 'redirected to: ' + redirect
resp = http.get(redirect, {'Cookie' => cookie})
end

if resp.body.include? 'Die SMS wurde im Gesendet-Ordner gespeichert'
#exit 0
sms_sent()
sent=true
end

unless sent
sms_not_sent("something went wrong")
end
end



end

end


Quote:

$ tail -n 15 ~/.kde/share/apps/plasma/plasmoids/sms-widget/contents/code/provider_list.yml
class: OrangeCH
icon: orangech.png
password_needed: true
own_number_needed: false
arcor.de:
login_needed: true
help: Enter your login name and your password.
class: ArcorDE
icon: orangech.png
password_needed: true
own_number_needed: false
"":
login_needed: true
password_needed: true
own_number_needed: false


Reply to this

-

 Re: arcor.de with ssl

 
 by nethad on: Feb 24 2011
 
Score 50%

I forgot to answer you, sorry. Thanks for the code! See my post below concerning the rewrite in JavaScript. I'll try to port your code.


Reply to this

-
.

 Maverick support ?

 
 by postadelmaga on: Feb 24 2011
 
Score 50%

- Problem

on kde 4.5 ubuntu Maverick I got this message:

could not create ruby script engine ....

i have installed
- libkde4-ruby1.8 ( actual substitute for libkorandum-ruby1.8 )
- libhttpclient-ruby1.8

as described by the author

any hint ?


Reply to this

-

 Re: Maverick support ?

 
 by nethad on: Feb 24 2011
 
Score 50%

I personally run Fedora, so I can't test the widget with Kubuntu. Generally QtRuby must be installed including kde ruby bindings.

A few weeks ago I started a rewrite of the SMS Widget in JavaScript, because I had limitations using Ruby. In JavaScript, however, the number autocompletion feature does not work and I haven't written a workaround yet.
I'll post updates as soon as there is a usable version.


Reply to this

-
.

 Great

 
 by postadelmaga on: Feb 24 2011
 
Score 50%

Thank you for soon replay

I have all the stuff installed but it doesn't work :)

However I'll wait for the new js version

Bye


Reply to this

goto page: prev   1  2 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team